This commit is contained in:
张成
2025-11-06 13:56:53 +08:00
parent b02853d5f7
commit c734e698de
12 changed files with 742 additions and 36 deletions

View File

@@ -7,7 +7,8 @@ module.exports = {
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'app.js',
clean: true
clean: true,
publicPath: '/'
},
module: {
rules: [
@@ -24,6 +25,10 @@ module.exports = {
test: /\.css$/,
use: ['vue-style-loader', 'css-loader']
},
{
test: /\.less$/,
use: ['vue-style-loader', 'css-loader', 'less-loader']
},
{
test: /\.(png|jpe?g|gif|svg|woff2?|eot|ttf|otf)$/,
type: 'asset/resource'
@@ -45,7 +50,7 @@ module.exports = {
}
},
devServer: {
hot: true,
hot: true, // 启用热更新
open: true,
port: 8080,
historyApiFallback: true