new-webpack-4-vscode

move static files to static folder

3/21/2022 10:49:51 AM

Changes

webpack.dev.js 2(+1 -1)

webpack.prod.js 2(+1 -1)

Details

webpack.dev.js 2(+1 -1)

diff --git a/webpack.dev.js b/webpack.dev.js
index 8e425a0..28238d0 100644
--- a/webpack.dev.js
+++ b/webpack.dev.js
@@ -23,7 +23,7 @@ module.exports = merge(common, {
             {
                 patterns: [
                     {
-                        from: path.resolve(__dirname, 'index.html'),
+                        from: path.resolve(__dirname, 'static'),
                         to: path.resolve(__dirname, devFolderName, '[name][ext]')
                     }
                 ]

webpack.prod.js 2(+1 -1)

diff --git a/webpack.prod.js b/webpack.prod.js
index dc5a671..50f3f3a 100644
--- a/webpack.prod.js
+++ b/webpack.prod.js
@@ -33,7 +33,7 @@ module.exports = merge(common, {
             {
                 patterns: [
                     {
-                        from: path.resolve(__dirname, 'index.html'),
+                        from: path.resolve(__dirname, 'static'),
                         to: path.resolve(__dirname, prodFolderName, '[name][ext]')
                     }
                 ]