Skip to content

How can i keep npm packages with tailwind.css working #8814

Answered by lmlife2016
hellomrbigshot asked this question in Help
Discussion options

You must be logged in to vote

I have found the solution👇

#4389

my tailwind.config.js look likes below:

module.exports = {
  purge: {
    enable: process.env.NODE_ENV !== 'development',
    content: [
      './src/**/*.html',
      './src/**/*.vue',
+     './node_modules/my-component-path/**/*.{vue,js,ts,jsx,tsx}',
    ],
  },
  // ...
}

Replies: 4 comments 13 replies

Comment options

You must be logged in to vote
3 replies
@copostic
Comment options

@AurelianSpodarec
Comment options

@hellomrbigshot
Comment options

Answer selected by hellomrbigshot
Comment options

You must be logged in to vote
7 replies
@rojvv
Comment options

@freshgiammi
Comment options

@drusellers
Comment options

@GeorgeTaveras1231
Comment options

@AurelianSpodarec
Comment options

Comment options

You must be logged in to vote
2 replies
@craigrileyuk
Comment options

@AurelianSpodarec
Comment options

Comment options

You must be logged in to vote
1 reply
@craigrileyuk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet