postcss, и заодно немного его упростить:{
loader: 'postcss-loader',
options: {
config: {
path: require.resolve('./postcss.config.js')
}
}
}postcss.config.jsmodule.exports = {
plugins: {
'postcss-import': {},
'cssnext': {},
'autoprefixer': {
browsers: ['last 2 versions']
},
'cssnano': {},
}
};
ExtractTextPlugin для dev-конфигурации.hot:true для devServer.publicPath для output и devServer.
Webpack is a module bundler for modern JavaScript applications.
git clone -b stack/material-ui https://github.com/AlexMasterov/webpack-kit.git material-ui-example
cd material-ui-example
yarn install & yarn serve
http://localhost:3000class App extends Component {
constructor(props) {
injectTapEventPlugin();
super(props);
}