Coder Social home page Coder Social logo

Comments (6)

JohnPostlethwait avatar JohnPostlethwait commented on August 25, 2024

Can you verify which version of Stringify you were using when it worked, and which version you are now using?

from stringify.

liorwohl avatar liorwohl commented on August 25, 2024

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.

matthewdunsdon avatar matthewdunsdon commented on August 25, 2024

@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.

liorwohl avatar liorwohl commented on August 25, 2024

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.

JohnPostlethwait avatar JohnPostlethwait commented on August 25, 2024

I agree! Thanks for the feedback! I'll update the README for clarity on this.

from stringify.

matthieusieben avatar matthieusieben commented on August 25, 2024

Note that you can also use --minifyOptions as in:
-t [ stringify --minify --minifyOptions [ --customAttrCollapse /ng-class/ ] --extensions [ .html ] ]

from stringify.

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.