修复js文件404问题

This commit is contained in:
2025-09-19 16:25:32 +08:00
parent 9d4581a2b5
commit 23b6d236a5
2 changed files with 2 additions and 2 deletions

View File

@@ -7,6 +7,5 @@
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
<script type="module" src="./src/main.js"></script>
</body> </body>
</html> </html>

View File

@@ -10,7 +10,8 @@ module.exports = (env, argv) => {
output: { output: {
filename: 'bundle.js', filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'), path: path.resolve(__dirname, 'dist'),
clean: true clean: true,
publicPath: '/'
}, },
module: { module: {
rules: [ rules: [