aboutsummaryrefslogtreecommitdiffhomepage
path: root/webpack
diff options
context:
space:
mode:
Diffstat (limited to 'webpack')
-rw-r--r--webpack/webpack.common.js2
-rw-r--r--webpack/webpack.dev.js1
-rw-r--r--webpack/webpack.manifest.js9
-rw-r--r--webpack/webpack.prod.js1
4 files changed, 8 insertions, 5 deletions
diff --git a/webpack/webpack.common.js b/webpack/webpack.common.js
index 6e0dd56f..ae32499a 100644
--- a/webpack/webpack.common.js
+++ b/webpack/webpack.common.js
@@ -1,4 +1,5 @@
/* eslint-disable @typescript-eslint/no-var-requires */
+// eslint-disable-next-line @typescript-eslint/no-unused-vars
const webpack = require("webpack");
const path = require('path');
const CopyPlugin = require('copy-webpack-plugin');
@@ -33,7 +34,6 @@ module.exports = env => ({
},
output: {
path: path.join(__dirname, '../dist/js'),
- filename: '[name].js'
},
optimization: {
splitChunks: {
diff --git a/webpack/webpack.dev.js b/webpack/webpack.dev.js
index 6ceabb83..c1b9472c 100644
--- a/webpack/webpack.dev.js
+++ b/webpack/webpack.dev.js
@@ -1,3 +1,4 @@
+/* eslint-disable @typescript-eslint/no-var-requires */
const merge = require('webpack-merge');
const common = require('./webpack.common.js');
diff --git a/webpack/webpack.manifest.js b/webpack/webpack.manifest.js
index a4aaea9e..3e30ffc6 100644
--- a/webpack/webpack.manifest.js
+++ b/webpack/webpack.manifest.js
@@ -1,7 +1,8 @@
+/* eslint-disable @typescript-eslint/no-var-requires */
+// eslint-disable-next-line @typescript-eslint/no-unused-vars
const webpack = require("webpack");
const path = require('path');
-const CopyPlugin = require('copy-webpack-plugin');
-const validateOptions = require('schema-utils');
+const { validate } = require('schema-utils');
const fs = require('fs');
@@ -30,12 +31,12 @@ const schema = {
class BuildManifest {
constructor (options = {}) {
- validateOptions(schema, options, "Build Manifest Plugin");
+ validate(schema, options, "Build Manifest Plugin");
this.options = options;
}
- apply(compiler) {
+ apply() {
const distFolder = path.resolve(__dirname, "../dist/");
const distManifestFile = path.resolve(distFolder, "manifest.json");
diff --git a/webpack/webpack.prod.js b/webpack/webpack.prod.js
index 65be616f..fe935af8 100644
--- a/webpack/webpack.prod.js
+++ b/webpack/webpack.prod.js
@@ -1,3 +1,4 @@
+/* eslint-disable @typescript-eslint/no-var-requires */
const merge = require('webpack-merge');
const common = require('./webpack.common.js');