Skip to content
New issue

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

compression styles, update depending, webpack 2 can es2015 import, add rules UglifyJs #357

Closed
slavikse opened this issue Feb 16, 2017 · 3 comments

Comments

@slavikse
Copy link

slavikse commented Feb 16, 2017

Hello!

  • Please add compression styles and use plug-ins only on production
var postcssOptions = production? {
   plugins: [
     require ( 'postcss-will-change'), // fallback will-change
     require ( 'autoprefixer') (Object.assign ({
       browsers: [ 'ie> 8', 'last 5 versions']
     }, Options.autoprefixer)),
     require ( 'postcss-csso'),
     require ( 'postcss-flexbugs-fixes')
   ]
} {}
  • Please update depending :)

  • Webpack 2 can es2015 import, may be necessary to specify in .babelrc: [ "es2015", { "modules": false}] a babel advises himself to a preset page?

  • It is possible as well to add a couple of rules to compress js:
    new webpack.optimize.UglifyJsPlugin ({
           minimize: true,
           beautify: false,
    })

Thank you! :)

@egoist
Copy link
Collaborator

egoist commented Feb 16, 2017

Hmm, seems you posted something in the wrong repo?

@slavikse
Copy link
Author

oh, is not true bearings :(
I hope the author of this wonderful framework still add compression to styles like as noticed :)

@yyx990803
Copy link
Member

CSS compression is already enabled out of the box when running npm run build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants