hi i want add React CSS Modules
msadeghifard1989 opened this issue · comments
hi
moeen
hi i want add React CSS Modules
But
https://laracasts.com/discuss/channels/elixir/helo-using-css-modules-with-laravel-54-mix
and
https://stackoverflow.com/questions/45792979/react-css-modules-with-laravel-mix
Please
help me
what version of laravel you are using ?
send me user skype id at m.basra@live.com
please follow the instructions and let me know if it works for you
install extract-text-webpack-plugin
npm i -S extract-text-webpack-plugin
try the following webpack config
mix.webpackConfig({ module: { rules: [ { test: /\.css$/, use: ExtractTextPlugin.extract({ fallback: 'style-loader', use: 'css-loader?modules,localIdentName="[name]-[local]-[hash:base64:6]"' }), } ] }, resolve: { extensions: ['.scss'], }, });