-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[email protected] contains 115 MiB of vue-cli #144
Comments
Is this being looked into? |
I gave up waiting and replaced vue-svg-loader with a minimalistic loader stored in the project itself: // vue-svg-loader.js
module.exports = function VueSvgLoader(svg) {
this.cacheable();
return `<template>${svg}</template>`;
};
// vue.config.js
module.exports = {
chainWebpack: (config) => {
config.module.rule("svg").uses.clear();
config.module
.rule("svg")
.use("vue-loader")
.loader("vue-loader")
.end()
.use("./vue-svg-loader")
.loader("./vue-svg-loader");
},
}; |
This solution worked fine for me |
@simon04 You don't seem to optimize your svg code with svgo like |
@pmrotule, you're right. My use-case was to load bootstrap-icons. Thus, using svgo seemed unnecessary. |
Here is code with svgo 2.2.
|
As an alternative, if you only use vue2, you can switch to version |
Unfortunately it seems doesn't work with svgo 3 :( |
The npm package [email protected] contains 115 MiB of vue-cli – https://unpkg.com/browse/[email protected]/
Please re-package in a clean environment.
The text was updated successfully, but these errors were encountered: