From 11a31db1cb9406313bd82b2f7b3327ccef0ca2fc Mon Sep 17 00:00:00 2001 From: sienori Date: Thu, 9 Sep 2021 02:06:08 +0900 Subject: [PATCH] Refactor build script --- webpack.config.dist.js | 40 +++++----------------------------------- 1 file changed, 5 insertions(+), 35 deletions(-) diff --git a/webpack.config.dist.js b/webpack.config.dist.js index 0b60195..c514b12 100644 --- a/webpack.config.dist.js +++ b/webpack.config.dist.js @@ -114,7 +114,6 @@ module.exports = [ entry: { other: path.resolve(__dirname, `src/background/background.js`) }, output: getOutput("copiedSource", config.tempDirectory), plugins: [ - ...getMiniCssExtractPlugin(), new CopyWebpackPlugin({ patterns: [ { @@ -123,40 +122,11 @@ module.exports = [ info: { minimized: true } }, { - from: `babel.config.js`, - to: path.resolve(__dirname, `${config.tempDirectory}/copiedSource/babel.config.js`) - }, - { - from: `config.json`, - to: path.resolve(__dirname, `${config.tempDirectory}/copiedSource/config.json`) - }, - { - from: `LICENSE`, - to: path.resolve(__dirname, `${config.tempDirectory}/copiedSource/LICENSE`) - }, - { - from: `package.json`, - to: path.resolve(__dirname, `${config.tempDirectory}/copiedSource/package.json`) - }, - { - from: `package-lock.json`, - to: path.resolve(__dirname, `${config.tempDirectory}/copiedSource/package-lock.json`) - }, - { - from: `README.md`, - to: path.resolve(__dirname, `${config.tempDirectory}/copiedSource/README.md`) - }, - { - from: `webpack.config.dev.js`, - to: path.resolve(__dirname, `${config.tempDirectory}/copiedSource/webpack.config.dev.js`) - }, - { - from: `webpack.config.dist.js`, - to: path.resolve(__dirname, `${config.tempDirectory}/copiedSource/webpack.config.dist.js`) - }, - { - from: `webpack.utils.js`, - to: path.resolve(__dirname, `${config.tempDirectory}/copiedSource/webpack.utils.js`) + from: "*", + to: path.resolve(__dirname, `${config.tempDirectory}/copiedSource/`), + globOptions: { + ignore: ["**/BACKERS.md", "**/crowdin.yml"] + } } ] }),