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

This commit is contained in:
2betop 2020-01-21 11:50:23 +08:00
parent 2946a25e4f
commit ae668c8a5f
1 changed files with 1 additions and 1 deletions

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',