How to sperates the less file in a css file with webpack 2?
问题 I can compile the less on the page within the <style></style> by webpack2. but I can't compile the less file into a CSS file. webpack.config.js: var path = require('path'); var webpack = require('webpack'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); var ENV = process.env.NODE_ENV; var port = '10101'; var commonAttr = ['common', 'markerFactory', 'sceneTransform', 'sparFactory', 'upload']; var vendorArr = []; for (var i = 0, l = commonAttr.length; i < l; i++) { vendorArr