ChunkLoadError: Loading chunk 55 failed
zzzmj opened this issue · 1 comments
zzzmj commented
按照安装CopyWebpackPlugin的方式还是出现这个错误
configureWebpack: {
// provide the app's title in webpack's name field, so that
// it can be accessed in index.html to inject the correct title.
name: name,
resolve: {
alias: {
'@': resolve('src')
}
},
plugins: [
new CopyWebpackPlugin([
{
context: 'node_modules/monaco-sqlpad/dist/',
from: '*.umd.min.*.js',
to: 'js/',
toType: 'dir'
},
{
from: 'node_modules/monaco-sqlpad/dist/editor.worker.js',
to: 'editor.worker.js',
toType: 'file'
},
{
context: 'node_modules/monaco-sqlpad/dist/',
from: 'fonts',
to: 'js/fonts',
toType: 'dir'
}
])
// new MonacoWebpackPlugin({
// languages: ['sql', 'javascript', 'css', 'html', 'json'],
// features: ['coreCommands', 'find']
// })
]
},
DiscoverForever commented
to 的路径加上./static
{
context: 'node_modules/monaco-sqlpad/dist/',
from: '.umd.min..js',
to: './static/js/',
toType: 'dir'
},
{
context: 'node_modules/monaco-sqlpad/dist/',
from: 'fonts',
to: './static/js/fonts/',
toType: 'dir'
}