https://medium.com/@mrodal/how-to-make-lazy-loading-actually-work-in-vue-cli-3-7f3f88cfb102
33 lines
919 B
JavaScript
33 lines
919 B
JavaScript
const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin");
|
|
module.exports = {
|
|
//https://medium.com/@mrodal/how-to-make-lazy-loading-actually-work-in-vue-cli-3-7f3f88cfb102
|
|
chainWebpack: config => {
|
|
config.plugins.delete("prefetch");
|
|
},
|
|
configureWebpack: {
|
|
plugins: [
|
|
new MonacoWebpackPlugin({
|
|
// available options are documented at https://github.com/Microsoft/monaco-editor-webpack-plugin#options
|
|
//https://github.com/Microsoft/monaco-editor-webpack-plugin
|
|
languages: [
|
|
"javascript",
|
|
"css",
|
|
"html",
|
|
"typescript",
|
|
"json",
|
|
"handlebars"
|
|
]
|
|
})
|
|
]
|
|
},
|
|
transpileDependencies: ["vuetify"],
|
|
pwa: {
|
|
name: "AyaNova",
|
|
workboxPluginMode: "InjectManifest",
|
|
workboxOptions: {
|
|
swSrc: "./src/sw.js",
|
|
swDest: "service-worker.js"
|
|
}
|
|
}
|
|
};
|