fix: fix some issues

This commit is contained in:
Brayn Lee
2021-09-04 18:57:13 +08:00
committed by 神戸小鳥
parent f105be1882
commit 0195c857d5
7 changed files with 1396 additions and 16 deletions

View File

@@ -1,14 +1,32 @@
const path = require('path');
module.exports = {
entry: './src/index.js',
mode: 'production',
entry: './src/index.js',
devtool: 'eval-cheap-module-source-map',
devServer: {
static: [
{
directory: path.join(__dirname, 'data'),
publicPath: '/data',
},
{
directory: path.join(__dirname, 'public'),
publicPath: '/public',
},
{
directory: path.join(__dirname, 'view'),
publicPath: '/view',
},
],
},
output: {
path: path.resolve(__dirname, 'public'),
filename: 'bundle.js',
clean: true,
},
// resolve: {
// extensions: [".js"],
// extensions: ['.js'],
// },
module: {
rules: [{