diff --git a/webpack.common.js b/webpack.common.js deleted file mode 100644 index b502ea95903a22a5f758a55d54cab241211a3d34..0000000000000000000000000000000000000000 --- a/webpack.common.js +++ /dev/null @@ -1,12 +0,0 @@ -const path = require('path'); - -module.exports = { - entry: { - app: './js/app.js', - }, - output: { - path: path.resolve(__dirname, 'dist'), - clean: true, - filename: './js/app.js', - }, -}; diff --git a/webpack.config.dev.js b/webpack.config.dev.js deleted file mode 100644 index 5953807c9924f73481facbc5f300db5fb0912779..0000000000000000000000000000000000000000 --- a/webpack.config.dev.js +++ /dev/null @@ -1,13 +0,0 @@ -const { merge } = require('webpack-merge'); -const common = require('./webpack.common.js'); - -module.exports = merge(common, { - mode: 'development', - devtool: 'inline-source-map', - devServer: { - liveReload: true, - hot: true, - open: true, - static: ['./'], - }, -}); diff --git a/webpack.config.prod.js b/webpack.config.prod.js deleted file mode 100644 index 9cad3db7909ed09a192d409efd98641f5006e21c..0000000000000000000000000000000000000000 --- a/webpack.config.prod.js +++ /dev/null @@ -1,26 +0,0 @@ -const { merge } = require('webpack-merge'); -const common = require('./webpack.common.js'); -const HtmlWebpackPlugin = require('html-webpack-plugin'); -const CopyPlugin = require('copy-webpack-plugin'); - -module.exports = merge(common, { - mode: 'production', - plugins: [ - new HtmlWebpackPlugin({ - template: './index.html', - }), - new CopyPlugin({ - patterns: [ - { from: 'img', to: 'img' }, - { from: 'css', to: 'css' }, - { from: 'js/vendor', to: 'js/vendor' }, - { from: 'assets', to: 'assets' }, - { from: 'icon.svg', to: 'icon.svg' }, - { from: 'favicon.ico', to: 'favicon.ico' }, - { from: 'robots.txt', to: 'robots.txt' }, - { from: '404.html', to: '404.html' }, - { from: 'manifest.json', to: 'manifest.json' }, - ], - }), - ], -});