Conflict: Multiple assets emit different content to the same filename index.html #1224
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
Duplicated: #1225 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
我在使用rsbuild构建一个vue2的spa项目
在rsbuild.config.mjs中做添加了如下配置
`
output: {
assetPrefix: "/cv3/",
distPath: {
root: "dist/cv3",
},
copy: [
{
from: "./public",
to: "",
toType: "dir",
ignore: [".DS_Store", { glob: "index.html", matchBase: false }],
},
],
},
source: {
alias: {
"@": "./src",
},
},
plugins: [pluginVue2()],
html: {
template: "./public/index.html",
},
dev: {
assetPrefix: "/cv3/",
},
tools: {
bundlerChain: (chain, { CHAIN_ID }) => {
chain.module
.rule("style-resources-loader")
.test(/.less$/)
.oneOf(CHAIN_ID.RULE.LESS)
.before(CHAIN_ID.RULE.LESS)
.use("style-resources-loader")
.loader("style-resources-loader")
.options({
patterns: ["./src/theme/theme.less"],
});
},
});
`
执行npm run dev报错Conflict: Multiple assets emit different content to the same filename index.html
![Uploading 1123.png…]()
Beta Was this translation helpful? Give feedback.
All reactions