how to build minified Css?
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.
npm run build minifies also CSS via "build-dev": "webpack --env=dev && npm run build:css",
ok @artf thanks :)
@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"
If you don't show the error how can I help you???
@artf i got the solution by adding two scripts in package.json
"build:css": "node-sass src/style/YourFileName.scss dist/Filename.min.css
"start:": "WEBPACK_ENV=dev ./node_modules/.bin/webpack-dev-server --progress --colors & npm run build:css --w
but the problem is that it will generated unminified css in the dist folder how could i generate minified css in that file should i write another script ?
@Abhisheknanda1344463 @artf i also did same but i did not get minified css
@Abhisheknanda1344463 @Siddharth-ss42279 guys... it's not difficult... look here https://github.com/artf/grapesjs/blob/dev/package.json#L105
there is an option... --output-style compressed come on...
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.