1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user