Webpack2 loading and extracting LESS file
问题 I am trying to setup Webpack2 to process my LESS files and create a separate CSS from it. I keep getting an error however. I've had trouble locating Webpack2 examples outlining the process so not sure what I am missing. My Webpack config: module.exports = { entry: { 'public': [ './src/client/styles/public.js' ] }, output: { ... }, module: { { test: /.*\.less$/, loader: ExtractTextPlugin.extract({ loader: 'less-loader', fallbackLoader: 'style-loader' }) } ] }, plugins: [ new ExtractTextPlugin(