Comments (6)
Can you verify which version of Stringify you were using when it worked, and which version you are now using?
from stringify.
Right now i use version 4.0.1, before that i had 3.2.1.
But I just downgraded to 3.2.1 and used it in my npm script, and I still having this bug,
so conservativeCollapse only works when using it in Gulp, not when using in npm script.
from stringify.
@liorwohl , I wonder if there is something wrong with the command syntax. The minify options should be in { ..., minifier: { options: { ... } }
.
Could you try using the command:
browserify --no-bundle-external --transform browserify-ngannotate --transform [ stringify --extensions [.html] --minify --minifier [ --options [ --collapseWhitespace --preserveLineBreaks --conservativeCollapse --removeComments --removeAttributeQuotes --removeTagWhitespace ] ] ] --debug --plugin [ minifyify --map app.min.js.map --output app.min.js.map ] app.js --outfile app.min.js
from stringify.
thanks, that was the problem :)
I think that it needs to be written somewhere more noticeable now that people start using npm scripts more.
from stringify.
I agree! Thanks for the feedback! I'll update the README for clarity on this.
from stringify.
Note that you can also use --minifyOptions
as in:
-t [ stringify --minify --minifyOptions [ --customAttrCollapse /ng-class/ ] --extensions [ .html ] ]
from stringify.
Related Issues (20)
- Could not compile HOT 1
- Doesn't work with backticks? HOT 8
- not minifying file in grunt HOT 3
- relatives directories?? HOT 1
- Error: Cannot find module './htmlparser' HOT 15
- Use with dynamic modules HOT 18
- Stringify from node_modules not working HOT 4
- Passing extensions in via command line HOT 8
- Tests are failing HOT 5
- Security vulnerability - update html-minifier HOT 2
- String is not correctly reconstructed when it uses quotes HOT 4
- 4.0.0 does not work from command line HOT 7
- Should this Browserify plugin use "browserify-transform-tools" HOT 8
- Unable to pass `customAttrCollapse` option to `html-minifier`
- I'd like require to import html files as template strings HOT 3
- Usage via grunt HOT 3
- lint is not working HOT 2
- Update html-minifier to v1.5.0 (at least) HOT 2
- Stringify adding  to beginning of html HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stringify.