diff options
author | Michael C <[email protected]> | 2022-02-05 21:20:53 -0500 |
---|---|---|
committer | Ajay <[email protected]> | 2022-02-06 13:24:47 -0500 |
commit | 1bd7c6a33ad2812b581af1c0e56d41f171b042a4 (patch) | |
tree | bcff4aded0d21a8af0d2a225807388031c40e70a /webpack | |
parent | f5301fc374e698a8e3b0f98fa348af1c2ceff934 (diff) | |
download | SponsorBlock-1bd7c6a33ad2812b581af1c0e56d41f171b042a4.tar.gz SponsorBlock-1bd7c6a33ad2812b581af1c0e56d41f171b042a4.zip |
update depndencies
- add engines targeting dev
- bump webpack
- update-oss-attribution CI
- appease eslint for webpack
- clean up packages
- move @types to devDependencies
- moved concurrently to devDependencies
- remove unused babel
Diffstat (limited to 'webpack')
-rw-r--r-- | webpack/webpack.common.js | 3 | ||||
-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, 9 insertions, 5 deletions
diff --git a/webpack/webpack.common.js b/webpack/webpack.common.js index cacb07ba..969a6831 100644 --- a/webpack/webpack.common.js +++ b/webpack/webpack.common.js @@ -1,3 +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'); @@ -32,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'); |