https://medium.com/@mrodal/how-to-make-lazy-loading-actually-work-in-vue-cli-3-7f3f88cfb102
29 lines
524 B
JavaScript
29 lines
524 B
JavaScript
// webpack.config.js
|
|
|
|
module.exports = {
|
|
optimization: {
|
|
splitChunks: {
|
|
chunks: "all"
|
|
}
|
|
},
|
|
rules: [
|
|
{
|
|
test: /\.s(c|a)ss$/,
|
|
use: [
|
|
"vue-style-loader",
|
|
"css-loader",
|
|
{
|
|
loader: "sass-loader",
|
|
options: {
|
|
implementation: require("sass"),
|
|
sassOptions: {
|
|
fiber: require("fibers"),
|
|
indentedSyntax: true // optional
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
};
|