Issue #1403Opened September 4, 2018by Abhisheknanda13444630 reactions

how to build minified Css?

Question

hi @artf Can You please explain me how can i build css from style section. Everytime when i run "Npm run build".Code build in min js only should i need to add file for css build??? Thanks.

Answers (3)

artfSeptember 5, 20180 reactions

npm run build minifies also CSS via "build-dev": "webpack --env=dev && npm run build:css",

Abhisheknanda1344463September 5, 20180 reactions

ok @artf thanks :)

Abhisheknanda1344463September 5, 20180 reactions

@artf With command "Npm run build" my css doesn't get build. i tried npm run build:css it shows error && various scripts are written in my package.json as shown below. My all css is in the Style folder.

  • "lint": "eslint src",
  • "v:patch": "npm version --no-git-tag-version patch",
  • "build": "npm run v:patch && webpack --env.production",
  • "start": "webpack-dev-server --open --progress --colors"

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.