We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there anything I'm doing wrong?
The output from below is 343K
343K
browserify -t [ babelify --presets [ es2015 react ] ] src/index.js \ -g [ envify --NODE_ENV production ] \ -g uglifyify -p bundle-collapser/plugin \ | uglifyjs -cm > public/build/app.js
is smaller than the one below is439K build.js
439K
var browserify = require('browserify') var envify = require('envify/custom') browserify('src/index.js') .transform('babelify', {presets: ['es2015', 'react']}) .transform(envify({NODE_ENV: 'production'})) .transform({ global: true, mangle: true, sourcemap: false, compress: { sequences: true, dead_code: true, booleans: true } }, 'uglifyify') .plugin(require('bundle-collapser/plugin')) .bundle() .pipe(process.stdout)
then node build.js | uglifyjs -cm > public/build/app.js
node build.js | uglifyjs -cm > public/build/app.js
The text was updated successfully, but these errors were encountered:
Maybe give #62 a go?
Sorry, something went wrong.
No branches or pull requests
Is there anything I'm doing wrong?
The output from below is
343K
is smaller than the one below is
439K
build.js
then
node build.js | uglifyjs -cm > public/build/app.js
The text was updated successfully, but these errors were encountered: