diff --git a/dev/main.js b/dev/main.js index afadb595..03510453 100644 --- a/dev/main.js +++ b/dev/main.js @@ -1,3 +1,4 @@ +/* global Vue */ $(function() { let App = require("./App.vue"); diff --git a/dev/utils.js b/dev/utils.js index 08828048..e4b46d39 100644 --- a/dev/utils.js +++ b/dev/utils.js @@ -3,7 +3,7 @@ module.exports = { filters: { prettyJSON: function(json) { if (json) { - json = JSON.stringify(json, undefined, 4); + json = JSON.stringify(json, null, 4); json = json.replace(/&/g, "&").replace(//g, ">"); return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function (match) { var cls = "number"; @@ -24,4 +24,4 @@ module.exports = { } } -} \ No newline at end of file +}; \ No newline at end of file diff --git a/test/unit/webpack.test.config.js b/test/unit/webpack.test.config.js index 968d8ba9..ffdf2b1c 100644 --- a/test/unit/webpack.test.config.js +++ b/test/unit/webpack.test.config.js @@ -1,15 +1,15 @@ var path = require("path"); -var webpack = require('webpack'); -var sourceDir = path.resolve(__dirname, '../../src'); +var webpack = require("webpack"); +var sourceDir = path.resolve(__dirname, "../../src"); module.exports = { - devtool: '#inline-source-map', + devtool: "#inline-source-map", module: { preLoaders: [ { test: /\.js$/, - loader: 'isparta', + loader: "isparta", include: sourceDir, exclude: /node_modules/ } @@ -40,12 +40,12 @@ module.exports = { }, { test: /\.(woff2?|svg)$/, - loader: 'url' - //loader: 'url?limit=10000' + loader: "url" + //loader: "url?limit=10000" }, { test: /\.(ttf|eot)$/, - loader: 'url' + loader: "url" } ], noParse: [ @@ -54,10 +54,10 @@ module.exports = { }, resolve: { - packageAlias: 'browser', + packageAlias: "browser", alias: { - 'src': sourceDir, - 'sinon': 'sinon/pkg/sinon' + "src": sourceDir, + "sinon": "sinon/pkg/sinon" } }, plugins: [ @@ -65,10 +65,10 @@ module.exports = { vue: { autoprefixer: { - browsers: ['last 2 versions'] + browsers: ["last 2 versions"] }, loaders: { - js: 'isparta' + js: "isparta" } } diff --git a/webpack.build.config.js b/webpack.build.config.js index aad9fce9..3a656e35 100644 --- a/webpack.build.config.js +++ b/webpack.build.config.js @@ -49,7 +49,7 @@ module.exports = [ ], module: { - loaders: loaders + loaders }, vue: { diff --git a/webpack.dev.config.js b/webpack.dev.config.js index 929947ae..3f359d4b 100644 --- a/webpack.dev.config.js +++ b/webpack.dev.config.js @@ -51,7 +51,7 @@ module.exports = { ], module: { - loaders: loaders + loaders }, resolve: {