Closed viperfx closed 8 years ago
Solved with
// Transform source code using Babel and React Hot Loader
module: {
loaders: [
{ test: /\.jsx?$/, exclude: /node_modules/, loaders: ["react-hot", "babel-loader"] },
{ test: /\.less$/,
loader: ExtractTextPlugin.extract('style-loader', 'css-loader?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!less')
}
]
},
// Automatically transform files with these extensions
resolve: {
extensions: ['', '.js', '.jsx', '.less', '.css']
},
It would be great to have an example of getting less support with this setup
Thanks