Git Product home page Git Product logo

webpack-uglify-js-plugin's People

Contributors

pingyuanchen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

webpack-uglify-js-plugin's Issues

This plugin removes "!important" css property

I am calling this plugin as following:

		new webpack.optimize.UglifyJsPlugin({
			compressor: {
				warnings: false,
				pure_getters: true,
	      unsafe: true,
	      unsafe_comps: true,
	      screw_ie8: true
			}
		}),

I end up that this plugin remove "!important" css property .

  • Which arguments/options is responsible for that so I will remove (unsafe, unsafe_comps, ... or something else) ?

Options support

Does this library not support preamble?

new webpackUglifyJsPlugin({cacheFolder: __dirname, preamble: '// should be displayed on top of file'})

I am failing to get the banner

'Let' Statement Causes: SyntaxError: Unexpected token: name

When running Webpack the current error is returned:
_new webpack.optimize.UglifyJsPlugin({
cacheFolder: path.resolve(_dirname, 'public/cached_uglify/'),
debug: true,
minimize: true,
sourceMap: false,
output: {
comments: false
},
compressor: {
warnings: false
}
})

I believe it to be just the let variable and probably an easy fix but I could not find it after googling different terms, Any help would be appreciated.

Thank you

(I can make a repo if needed)

new webpack.optimize.UglifyJsPlugin({
cacheFolder: path.resolve(__dirname, 'public/cached_uglify/'),
debug: true,
minimize: true,
sourceMap: false,
output: {
comments: false
},
compressor: {
warnings: false
}
})

Setup in webpack.config.js
new webpack.optimize.UglifyJsPlugin({ cacheFolder: path.resolve(__dirname, 'public/cached_uglify/'), debug: true, minimize: true, sourceMap: false, output: { comments: false }, compressor: { warnings: false } })

ascii-only?

Does the following actually have an effect? I have seen it in examples, but can not find any documentation on it:

new webpack.optimize.UglifyJsPlugin({
        mangle: false,
        output: {
          comments: false,
          ascii_only: true
        },
        compress: {
          warnings: false
        }
      }),

Add project description

It looks like this is a newer and faster version of an UglifyJS plugin, so I'm very interested to know more. What are the main differences between this and webpack.optimize.UglifyJsPlugin?

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.