update compiled CSS to remove the extra @charset "UTF-8"#933
Open
abepark01 wants to merge 1 commit intobasecamp:mainfrom
Open
update compiled CSS to remove the extra @charset "UTF-8"#933abepark01 wants to merge 1 commit intobasecamp:mainfrom
abepark01 wants to merge 1 commit intobasecamp:mainfrom
Conversation
|
This seems to fix the issue as well postcss-normalize-charset: // postcss.config.js
module.exports = {
plugins: [
require('postcss-import')({ plugins: [require('postcss-normalize-charset')] }),
// ...
],
};(specifically if you're also importing other files that have their own charset declaration, such as jQuery UI). |
|
@thomasbrus thanks for the suggested work-around. Unfortunately this (no longer?) seems to work, as I am still getting the warning message. My postcss.config.js: module.exports = {
plugins: [
require('postcss-import')({ plugins: [require('postcss-normalize-charset')] }),
],
}And the vite output: ─❯ npm run build ─╯
> build
> vite build
vite v3.2.7 building for production...
transforming (92) node_modules/axios/lib/helpers/parseHeaders.js
/fonts/Raleway.ttf referenced in /var/www/html/resources/css/app.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
/fonts/Raleway-Italic.ttf referenced in /var/www/html/resources/css/app.css didn't resolve at build time, it will remain unchanged to be resolved at runtime
[vite:css] @charset must precede all other statements
✓ 123 modules transformed.
public/build/manifest.json 0.25 KiB
public/build/assets/app.867c71f6.css 19.51 KiB / gzip: 4.97 KiB
public/build/assets/app.b0c4883d.js 788.64 KiB / gzip: 195.57 KiB
(!) Some chunks are larger than 500 KiB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/guide/en/#outputmanualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.Any thoughts why this might be? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#897 updates the source file, but not the compiled CSS.
I added the compiled CSS to piggyback on #897.
This update completes the fix for #795.
The compiled CSS still shows the following postcss warning: