add eslint to dev webpack
This commit is contained in:
parent
cfd4d998cf
commit
8aeb46130e
1 changed files with 2 additions and 5 deletions
|
@ -25,12 +25,9 @@ module.exports = {
|
||||||
module: {
|
module: {
|
||||||
loaders: [
|
loaders: [
|
||||||
{
|
{
|
||||||
test: /\.jsx*$/,
|
test: /\.jsx?$/,
|
||||||
exclude: [/node_modules/, /.+\.config.js/],
|
exclude: [/node_modules/, /.+\.config.js/],
|
||||||
loader: 'babel',
|
loaders: ['babel?presets[]=react-hmre', 'eslint-loader']
|
||||||
query: {
|
|
||||||
presets: ['react-hmre'],
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.scss$/,
|
test: /\.scss$/,
|
||||||
|
|
Loading…
Reference in a new issue