react-webpack-generators / generator-react-webpack

Yeoman generator for ReactJS and Webpack
http://newtriks.com/2013/12/31/automating-react-with-yeoman-and-grunt/
MIT License
2.88k stars 355 forks source link

postcss #283

Closed dukegod closed 7 years ago

dukegod commented 8 years ago

how to support autoprefixer?

just modify cfg/defaults.js!!! like :

module.exports = {
  srcPath: srcPath,
  publicPath: '/assets/',
  port: dfltPort,
  getDefaultModules: getDefaultModules,
 postcss: function () {
        return [precss, autoprefixer];
    }
};
dukegod commented 8 years ago

in "cfg/defaults.js" file, "postcss"function will not be work.

ajnudnyy commented 7 years ago

Dukegod: No! No doesn't modify cfg/defaults.js.

As noted, it's to modify cfg/base.js image

ajnudnyy commented 7 years ago

This process of configuration is noted in markdown file.

weblogixx commented 7 years ago

@dukegod: Thank you for your answer. As @ajnudnyy has already noted, the correct place for the v3 generator is currently base.js. I hope you where able to get it running. Please feel free to reopen this issue if there are still any problems.