You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to migrate from webpack to rsbuild and stumbled upon a problem.
Lets say that folder web/assets already exists in a root directory of a project. When I'm starting a server, the files are not generated under web/assets folder. But if, lets say, if I change web/assets, to a web_foo/assets (which does not exist in the project), the subfolder assets is created and I see all generated files.
Any ideas on how to make rsbuild create a subfolder for already existing folder?
import {defineConfig} from '@rsbuild/core';
import {pluginVue} from '@rsbuild/plugin-vue';
export default defineConfig({
plugins: [pluginVue()],
source: {
alias: {
root: './',
//...lots of other aliases
},
entry: {
app: './web/vwm/js/app.js',
chosen: './web/vwm/js/chosen.js',
jquery: './web/vwm/js/jquery-webpack.js',
//...lots of other entries
}
},
dev: {
writeToDisk: true,
},
output: {
cleanDistPath: true,
manifest: true,
distPath: {
root: 'web/assets',
},
},
});
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to migrate from webpack to rsbuild and stumbled upon a problem.
Lets say that folder
web/assets
already exists in a root directory of a project. When I'm starting a server, the files are not generated underweb/assets
folder. But if, lets say, if I changeweb/assets
, to aweb_foo/assets
(which does not exist in the project), the subfolderassets
is created and I see all generated files.Any ideas on how to make rsbuild create a subfolder for already existing folder?
Beta Was this translation helpful? Give feedback.
All reactions