3.0.0原版
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
import { rsbuildConfig } from '@halo-dev/ui-plugin-bundler-kit';
|
||||
import { pluginVue } from '@rsbuild/plugin-vue';
|
||||
|
||||
const MANIFEST_PATH = '../../src/main/resources/plugin.yaml';
|
||||
const OUT_DIR_PROD = '../../src/main/resources/console';
|
||||
const OUT_DIR_DEV = '../../build/resources/main/console';
|
||||
|
||||
export default rsbuildConfig({
|
||||
manifestPath: MANIFEST_PATH,
|
||||
rsbuild: ({ envMode }) => {
|
||||
const isProduction = envMode === 'production';
|
||||
const outDir = isProduction ? OUT_DIR_PROD : OUT_DIR_DEV;
|
||||
|
||||
return {
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': './src',
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
pluginVue({
|
||||
vueLoaderOptions: {
|
||||
compilerOptions: {
|
||||
isCustomElement: (tag) => tag.startsWith('comment-'),
|
||||
},
|
||||
},
|
||||
}),
|
||||
],
|
||||
output: {
|
||||
distPath: {
|
||||
root: outDir,
|
||||
},
|
||||
},
|
||||
};
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user