Git Product home page Git Product logo

Comments (4)

webdiscus avatar webdiscus commented on June 7, 2024 1

@ladown

The plugin does not capture scripts/styles, because they already must be manually specified in a template and not anywhere.
This is the goal this plugin: manually specify source scripts/styles directly in a template.
This plugin don't inject the link/script tags.

P.S. You are probably confusing with another html-webpack-plugin that catches styles/scripts defined in Webpack config and then inserts them into HTML.

from pug-plugin.

webdiscus avatar webdiscus commented on June 7, 2024 1

Preloading of scripts and styles will also be implemented too.

from pug-plugin.

ladown avatar ladown commented on June 7, 2024

Seems to be good.

Going back to our last conversation about preload, do you think it might still be worth thinking about how scripts/styles could be captured through these settings? I thought about it to make the code more uniform. It looks strange when we specify preload for styles or scripts manually, and the plugin handles all our other assets

from pug-plugin.

webdiscus avatar webdiscus commented on June 7, 2024

@ladown

the new pug plugin v5.0.0 is based on the html-bundler-webpack-plugin and has all features, including the preload

from pug-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.