以前用webpack1.X時候webpack.config檔是這樣寫的
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代码??
雷雷