worker 地址只在本地预览的时候才生成

This commit is contained in:
2betop 2020-01-21 11:50:23 +08:00
parent 2c204845ad
commit 3b487434a6

View File

@ -137,7 +137,7 @@ fis.hook('commonjs', {
extList: ['.js', '.jsx', '.tsx', '.ts']
});
fis.match('::package', {
fis.media('dev').match('::package', {
prepackager: fis.plugin('stand-alone-pack', {
'/pkg/editor.worker.js': 'monaco-editor/esm/vs/editor/editor.worker.js',
'/pkg/json.worker.js': 'monaco-editor/esm/vs/language/json/json.worker',