mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
refactor(compiler)!: move component generation to core
This commit is contained in:
@@ -13,24 +13,13 @@ const entries = Object.fromEntries(
|
||||
const createConfig = (mode: PackageBuildMode): UserConfig => ({
|
||||
...packageBuildConfig(mode, 'browser'),
|
||||
entry: entries,
|
||||
copy: [
|
||||
{
|
||||
from: 'src/**/*.css',
|
||||
to: `dist/${mode}`,
|
||||
flatten: false,
|
||||
},
|
||||
],
|
||||
plugins: [
|
||||
{
|
||||
name: 'watch-css',
|
||||
buildStart() {
|
||||
const cssFiles = globSync('src/**/*.css');
|
||||
for (const file of cssFiles) {
|
||||
this.addWatchFile(file);
|
||||
}
|
||||
},
|
||||
},
|
||||
],
|
||||
// copy: [
|
||||
// {
|
||||
// from: 'src/**/*.css',
|
||||
// to: `dist/${mode}`,
|
||||
// flatten: false,
|
||||
// },
|
||||
// ],
|
||||
});
|
||||
|
||||
export default defineConfig(packageBuildModes.map((mode) => createConfig(mode)));
|
||||
|
||||
Reference in New Issue
Block a user