nelsyeung / usemin-cli Goto Github PK
View Code? Open in Web Editor NEWReplaces references to non-optimized scripts or stylesheets into a set of HTML files (or any templates/views)
License: MIT License
Replaces references to non-optimized scripts or stylesheets into a set of HTML files (or any templates/views)
License: MIT License
Hi,
I read in the documentation that if a build block contains "remove" in it than the process will remove the block, but in practice it does not work.
Am I missing something?
Thanks!
Hi,
I'm trying to add configuration to the uglifyjs, but it doesn't seem to work.
Here is the content of my file.
BTW is that the configuration option? I've looked over the uglifyjs repo and this is the best I could find...
module.exports = {
outSourceMap: "out.js.map"
},
cleancss: {
// ... CleanCSS API options
},
htmlminifier: {
// ... HTML minifier API options
}
}
Am I missing something?
Thanks for the help
As far as I can see from docs/help, and trying similar approach from gulp-usemin, there's no way to define alternate path for assets. When absolute paths to assets from html
template are not matching actual routes, it's important to have an ability to define your own resolve directory.
Here's an example from gulp-usemin:
<!-- build:<pipelineId>(alternate search path) <path> -->
... HTML Markup, list of script / link tags.
<!-- endbuild -->
Would be nice to have an option in CLI to define resolve path.
What do you think of an option like this, so just output to stdout a json with the files so that they can be used elsewhere?
Please update the dependency. Safe version >= 4.1.11.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.