mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: seperate worker build
This commit is contained in:
1 parent
12bad8267a
commit
042acba3e7
6 files changed
+5
-3
No files matched your search
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user