diff options
| -rw-r--r-- | .eslintignore | 3 | ||||
| -rw-r--r-- | package.json | 4 | ||||
| -rw-r--r-- | webpack.config.js | 76 |
3 files changed, 43 insertions, 40 deletions
diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..cf2289d --- /dev/null +++ b/.eslintignore @@ -0,0 +1,3 @@ +node_modules +webAO/lib/ +webAO/js
\ No newline at end of file diff --git a/package.json b/package.json index a9ee554..f8908ea 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,8 @@ "test": "echo \"Error: no test specified\" && exit 1", "build": "webpack --config webpack.config.js", "start": "webpack-dev-server --config webpack.config.js", - "lint": "eslint ./webAO --ext .js", - "lint:fix": "eslint --fix ./webAO --ext .js" + "lint": "eslint . --ext .js", + "lint:fix": "eslint --fix . --ext .js" }, "repository": { "type": "git", diff --git a/webpack.config.js b/webpack.config.js index 2754b21..33c639f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -3,43 +3,43 @@ const path = require('path'); module.exports = { - entry: { - ui: './webAO/ui.js', - client: './webAO/client.js', - master: './webAO/master.js' - }, - output: { - path: path.resolve(__dirname, 'webAO'), - filename: '[name].b.js' - }, - module: { - rules: [ - { - test: /\.m?js$/, - exclude: /(node_modules|bower_components)/, - use: { - loader: 'babel-loader', - options: { - presets: [ - [ - '@babel/preset-env', { - useBuiltIns: 'usage', - targets: [ - "defaults", - "Safari > 3", - "Opera > 8", - "Android > 3" - ], - corejs: 3 - } - ] - ] - } - } - } - ] + entry: { + ui: './webAO/ui.js', + client: './webAO/client.js', + master: './webAO/master.js', + }, + output: { + path: path.resolve(__dirname, 'webAO'), + filename: '[name].b.js', + }, + module: { + rules: [ + { + test: /\.m?js$/, + exclude: /(node_modules|bower_components)/, + use: { + loader: 'babel-loader', + options: { + presets: [ + [ + '@babel/preset-env', { + useBuiltIns: 'usage', + targets: [ + 'defaults', + 'Safari > 3', + 'Opera > 8', + 'Android > 3', + ], + corejs: 3, + }, + ], + ], + }, + }, }, + ], + }, - devtool: 'source-map', - mode: 'production' -};
\ No newline at end of file + devtool: 'source-map', + mode: 'production', +}; |
