Add webpack JSHint loader.

This commit is contained in:
Gunther Brunner
2014-09-02 16:27:36 +09:00
parent 404e947f44
commit 7b77412edd
7 changed files with 32 additions and 21 deletions

View File

@@ -60,8 +60,15 @@ module.exports = {
{ test: /dialogs\.js$/, loader: 'script'},
{ test: /bluebird\.js$/, loader: 'imports?require=>undefined'}
],
preLoaders: [
{
test: /\.js$/,
exclude: /node_modules|bower_components/,
loader: 'jshint-loader'
}
],
noParse: [
// pathutil.resource('bower_components')
//pathutil.resource('bower_components')
]
},
plugins: [