ui: seperate worker build

This commit is contained in:
undefined committed 2022-10-08 09:59:32 +08:00
1 parent 12bad8267a
commit 042acba3e7
6 files changed
+5 -3

No files matched your search

+3 -1
View File
@@ -34,7 +34,7 @@ export default function (env: { watch?: boolean, production?: boolean, measure?:
function postcssLoader() {
return {
loader: 'postcss-loader',
options: { postcssOptions: { sourceMap: env.production, config: root('postcss.config.js') } },
options: { postcssOptions: { sourceMap: false, config: root('postcss.config.js') } },
};
}
@@ -74,6 +74,8 @@ export default function (env: { watch?: boolean, production?: boolean, measure?:
hydro: './entry.js',
polyfill: './polyfill.ts',
'default.theme': './theme/default.js',
'service-worker': './service-worker.ts',
'messages-shared-worker': './components/message/worker.ts',
},
cache: {
type: 'filesystem',