1

I have included css files in to nuxtJs config file, so i want to minify them but i do not want to extract them to external css file.

Is there any way of doing this?.

Code

  /*
   ** Global CSS
   */
  css: [
    "~/assets/css/tailwind.css",
    "~/assets/scss/styles.scss",
    "~/static/js/plugins/slick/slick.css",
    "~/static/js/plugins/fotorama/fotorama.css",
    "swiper/dist/css/swiper.css"
  ],
  build: {
    extractCSS: false,
  }

1 Answer 1

1

You can use PurgeCSS and the module for NuxtJS

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.