Open konrad-marzec opened 4 months ago
please considers removing less.rootpath
or duplicating alias configs with rootpath prefixed like "ui/mixins/@alias": "@alias"
please considers removing
less.rootpath
or duplicating alias configs with rootpath prefixed like"ui/mixins/@alias": "@alias"
@konrad-marzec could you please share more feedback on if it works?
The following config solves the problem. However it is not optimal. In long term I would like to define aliases
in single place. In webpack css-loader
combined with less-loader
or sass-loader
does the work.
export default defineConfig({
source: {
alias: {
'@app000': resolve(__dirname, 'app000'),
'@app001': resolve(__dirname, 'app001'),
}
},
tools: {
less: {
lessOptions: {
javascriptEnabled: true,
paths: [resolve(__dirname, 'app000'), resolve(__dirname, 'app001')],
},
}
},
plugins: [pluginReact()]
});
System Info
Details
Reproduce link
No response
Reproduce Steps
configure aliases
@font-face { font-family: "font-family"; src: url("@alias/path/to/font.eot") format("eot"); }