This is what was written in the webpack.config file before using webpack1.X
npm install jshint-loader --save-dev
var path = require('path');
var APP_PATH = path.resolve(ROOT_PATH, 'app');
module: {
preLoaders: [
{
test: /\.jsx?$/,
include: APP_PATH,
loader: "jshint-loader"
}
],
jshint: {
"esnext": true
}
}
现在webpack2.X preLoaders跟jshint的写法都变了,我应该怎么修改下config代码??
人生最曼妙的风景,竟是内心的淡定与从容!