Document how to configure `VuetifyProgressiveModule` with vue cli 3
See original GitHub issueThe default vue cli 3.x projects use the so-called “no config” webpack. It’s not clear to me (only me?) how to add VuetifyProgressiveModule
to these vue cli 3.x projects.
Thank you for this library!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Configuration Reference | Vue CLI
outputDir #. Type: string. Default: 'dist'. The directory where the production build files will be generated ...
Read more >Modes and Environment Variables - Vue CLI
Mode is an important concept in Vue CLI projects. By default, there are three modes: ... When running vue-cli-service , environment variables are ......
Read more >Creating a Project | Vue CLI
For new projects, it is now recommended to use create-vue to scaffold Vite-based projects. Also refer to the Vue 3 Tooling Guide for...
Read more >Vue CLI: Home
For new projects, please use create-vue to scaffold Vite-based projects. Also refer to the Vue 3 Tooling Guide for the latest recommendations.
Read more >Working with CSS | Vue CLI
Also refer to the Vue 3 Tooling Guide for the latest recommendations. ... Sass npm install -D sass-loader sass # Less npm install...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay, here is my
vue.config.js
file now (very similar to the link you posted, but some differences):After writing that file, the first build attempt it complained that there was no
gm
module. I was happy to see it complain, as this indicated it was trying to do something new! So, Inpm install gm --save
. (I have also already compiled and installed ImageMagick.)After installing
gm
, it now seems to work, at first glance. I.e. It builds without error.However, when inspecting the
dist/
directory, I find that it hasn’t modified my images at all. They are identical to what is in mysrc/assets/
folder.On the vue side, here is the relevant code I’m using:
Any ideas for why it’s not generated progressive JPEGs?
modify
vue.config.js
module.exports = { transpileDependencies: ["vuetify"],
};
you should restart your server
npm run serve