Preflight CSS in production for Sapper Rollup
See original GitHub issueHello,
in my projects preflight CSS is missing when NODE_ENV
is not set to development. In other cases (not defined, prod, production and so on) there is no preflight CSS in final page (underline blue hyperlinks, gray buttons etc.).
I have v3.1.1 of svelte-windicss-preprocess and issue is same for Svelte (after hot reload) and for Sapper (in build phase, dev is OK).
Otherwise, your project is cool 👍
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (8 by maintainers)
Top Results From Across the Web
Sapper rollup template with postcss, autoprefixer and tailwind.
This template is identical to the rollup sapper-template but with additional CSS processors: postcss, tailwind, and autoprefixer. Clone the repo, install it ...
Read more >Solid Sapper setup with PostCSS and Tailwind - codechips
I spent some time trying to get Sapper to play nice with PostCSS and Tailwind CSS.
Read more >Straightforward guide to use TailwindCSS with Sapper
Initial Sapper setup; Typescript (optional); Add the required packages; Configure tailwind; Create Svelte configuration; Modify Rollup ...
Read more >Configuring TailwindCSS for Sapper - DEV Community
To run the application in production more, execute npm run build . To generate the static site of the application, run npm run...
Read more >Optimizing for Production - Tailwind CSS
Tailwind CSS is incredibly performance focused and aims to produce the smallest CSS file possible by only generating the CSS you are actually...
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 Free
Top 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
Try to clone https://github.com/tomasherout/windicss-no-preflight and then
yarn install
(ornpm install
)npm run build
npm run start
There is:
It should look like this:
but looks:
we will drop sapper support, since svelteKit is close to be released… for svelteKit Support track readme or #65