-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Description
What version of @tailwindcss/jit are you using?
0.1.4
What version of Node.js are you using?
14.2.0
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction repository
https://www.youtube.com/watch?v=G6d-SXdcJXs
Hi there
I tried to use this new JIT feature with a new React app built with Snowpack.
Unfortunately, I cannot have Snowpack use Tailwind JIT properly.
I think I might have missed something about the configuration process.
When changing a class in a component, I have to stop and restart the dev server.
Here are my config files:
// snowpack.config.js
module.exports = {
mount: {
public: { url: '/', static: true },
src: { url: '/dist' },
},
plugins: [
'@snowpack/plugin-react-refresh',
'@snowpack/plugin-dotenv',
'@snowpack/plugin-typescript',
'@snowpack/plugin-postcss',
],
routes: [{ match: 'routes', src: '.*', dest: '/index.html' }],
optimize: {},
packageOptions: {},
devOptions: {},
buildOptions: {},
}// tailwind.config.js
module.exports = {
purge: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html'],
darkMode: false,
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
}// postcss.config.js
module.exports = {
plugins: {
'@tailwindcss/jit': {},
autoprefixer: {},
},
}Thanks!
fev4, thomasruiz, sean-clayton, Xeevis, sebastienbarre and 6 more
Metadata
Metadata
Assignees
Labels
No labels