-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
css file import dose not work when build production files #4832
Comments
https://vue-loader.vuejs.org/guide/#manual-setup
|
I know it's not the best place to put such a warning… Maybe we need to put it in the Vue CLI documentation. |
These warnings are originally stated in the vue-loader documentation, but the CLI documentation perhaps have more visibility. Fixes vuejs#4832
Oh that's a little bit awkward. I Appreciate your support,Thanks a lot! |
These warnings are originally stated in the vue-loader documentation, but the CLI documentation perhaps have more visibility. Fixes #4832
Version
3.12.1
Reproduction link
https://github.com/BboyAwey/vue-cli-css-file-lose-while-building-production-files
Environment info
Steps to reproduce
1.run
yarn
to install all deps2.run
yarn serve
to start dev serverI imported a css file from
admin-ui/dist/style.css
inmain.js
, and It works fine. Then we build:3.run
yarn build
to build production filesand check the
dist
dir, the code from that css file is missing!!Then I create another directory in node_modules and put a css file in it and import it in
main.js
, then build again, it works fine!!Magic!!!
What is expected?
The code from css file
admin-ui/dist/style.css
should work and show themselves in production files.What is actually happening?
The code from css file
admin-ui/dist/style.css
works fine when in dev mode but disappear in production filesWhat a magic moment!!
The text was updated successfully, but these errors were encountered: