Skip to content

Commit 7b409b4

Browse files
committed
strict mode fix for Node 5 compatibility
1 parent 91d4904 commit 7b409b4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
},
2020
"license": "MIT",
2121
"scripts": {
22-
"prod-build": "webpack",
22+
"prod-build": "webpack --color",
2323
"prod-test": "karma start test/config/karma.conf.js",
24-
"dev-server": "webpack-dev-server",
24+
"dev-server": "webpack-dev-server --color",
2525
"dev-test": "karma start test/config/karma.conf.js",
2626
"hint-tests": "jshint --verbose test",
2727
"build": "npm run hint-tests && npm run prod-build && npm run prod-test",

webpack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
const path = require('path');
24
const fs = require('fs');
35
const glob = require('glob');
@@ -37,6 +39,7 @@ if (ENV === 'development') {
3739
isTest ? ({
3840
enforce: 'pre',
3941
test: /\.js$/,
42+
exclude: /node_modules/,
4043
include: path.resolve(__dirname, 'test'),
4144
use: [{
4245
loader: 'jshint-loader'
@@ -145,6 +148,7 @@ module.exports = {
145148
{
146149
enforce: 'pre',
147150
test: /\.js$/,
151+
exclude: /node_modules/,
148152
include: path.resolve(__dirname, 'src'),
149153
use: [{
150154
loader: 'jshint-loader'

0 commit comments

Comments
 (0)