diff options
author | Ajay <[email protected]> | 2022-02-06 13:42:58 -0500 |
---|---|---|
committer | Ajay <[email protected]> | 2022-02-06 13:42:58 -0500 |
commit | 9c836a89a36eceebe5c43873508a8c41f30c5dd3 (patch) | |
tree | 780db8b4def1f34b5612695d1bf3b5e077e6a624 /webpack | |
parent | b21b6edb0c34ec711f204fcf888c1160037077d4 (diff) | |
parent | d9dede65781f2b20228ff479e0ed85531552a88a (diff) | |
download | SponsorBlock-9c836a89a36eceebe5c43873508a8c41f30c5dd3.tar.gz SponsorBlock-9c836a89a36eceebe5c43873508a8c41f30c5dd3.zip |
Merge branch 'master' of https://github.com/ajayyy/SponsorBlock into misc-fix
Diffstat (limited to 'webpack')
-rw-r--r-- | webpack/webpack.common.js | 2 | ||||
-rw-r--r-- | webpack/webpack.dev.js | 1 | ||||
-rw-r--r-- | webpack/webpack.manifest.js | 9 | ||||
-rw-r--r-- | webpack/webpack.prod.js | 1 |
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'); |