Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

changes to include SaSS Source maps in DEV build #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@
"scripts": {
"sass:tokens": "npx json-to-scss src/_data/tokens.json src/scss/_tokens.scss",
"sass:process": "npm run sass:tokens && sass src/scss/global.scss src/_includes/assets/css/global.css --style=compressed",
"sass:processDEV": "npm run sass:tokens && sass src/scss/global.scss src/_includes/assets/css/global.css --source-map-urls=absolute --embed-source-map",
"cms:precompile": "make-dir dist/admin && nunjucks-precompile src/_includes > dist/admin/templates.js -i \"\\.(njk|css|svg)$\"",
"cms:bundle": "rollup --config",
"start": "concurrently \"npm run sass:process -- --watch\" \"npm run cms:bundle -- --watch\" \"chokidar \\\"src/_includes/**\\\" -c \\\"npm run cms:precompile\\\"\" \"npm run serve\"",
"start": "concurrently \"npm run sass:processDEV -- --watch\" \"npm run cms:bundle -- --watch\" \"chokidar \\\"src/_includes/**\\\" -c \\\"npm run cms:precompile\\\"\" \"npm run serve\"",
"serve": "cross-env ELEVENTY_ENV=development npx eleventy --serve",
"production": "npm run sass:process && npm run cms:precompile && npm run cms:bundle && npx eleventy"
},
Expand Down
2 changes: 1 addition & 1 deletion src/transforms/html-min-transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = function htmlMinTransform(value, outputPath) {
useShortDoctype: true,
removeComments: true,
collapseWhitespace: true,
minifyCSS: true
minifyCSS: false
});
return minified;
}
Expand Down