Skip to content

Commit

Permalink
Fix eslint-loader usage on production
Browse files Browse the repository at this point in the history
So as `eslint-loader` placed to `devDependencies` it causes an error like:

```
ERROR in Entry module not found: Error: Can't resolve 'eslint-loader' in ...
```
  • Loading branch information
umbrella-anton-karmazin authored Oct 10, 2017
1 parent d0cf3b6 commit 8b9918a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = {
** Run ESLINT on save
*/
extend (config, ctx) {
if (ctx.isClient) {
if (ctx.dev && ctx.isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
Expand Down

0 comments on commit 8b9918a

Please sign in to comment.