diff options
author | XhmikosR <xhmikosr@gmail.com> | 2017-08-08 19:37:50 +0300 |
---|---|---|
committer | Mark Otto <markd.otto@gmail.com> | 2017-08-09 18:31:25 +0300 |
commit | 0cb7a1687c6589f65c6da9d63d8140508a8b05c2 (patch) | |
tree | d295c902930cc2f710aa305ff87df2a16b42987d /package.json | |
parent | fd113b93f6977685c81ebc615aed9573079afe5c (diff) |
Fix sourcemaps for node-sass too.
Specify `--source-map-contents true` for node-sass and `source-map-inline-sources` for clean-css.
Without this, the sourcemaps weren't found.
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/package.json b/package.json index 72a6e2110a..390979ad6f 100644 --- a/package.json +++ b/package.json @@ -22,12 +22,12 @@ "css-docs": "npm-run-all css-lint-docs css-compile-docs css-prefix-docs css-minify-docs", "css-lint": "bundle exec scss-lint --config .scss-lint.yml scss/*.scss", "css-lint-docs": "bundle exec scss-lint --config .scss-lint.yml --exclude assets/scss/docs.scss assets/scss/*.scss", - "css-compile": "node-sass --output-style expanded --source-map true --precision 6 scss/bootstrap.scss dist/css/bootstrap.css && node-sass --output-style expanded --source-map true --precision 6 scss/bootstrap-grid.scss dist/css/bootstrap-grid.css && node-sass --output-style expanded --source-map true --precision 6 scss/bootstrap-reboot.scss dist/css/bootstrap-reboot.css", - "css-compile-docs": "node-sass --output-style expanded --source-map true --precision 6 assets/scss/docs.scss assets/css/docs.min.css", + "css-compile": "node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/bootstrap.scss dist/css/bootstrap.css && node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/bootstrap-grid.scss dist/css/bootstrap-grid.css && node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/bootstrap-reboot.scss dist/css/bootstrap-reboot.css", + "css-compile-docs": "node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 assets/scss/docs.scss assets/css/docs.min.css", "css-prefix": "postcss --config build/ --replace dist/css/*.css", "css-prefix-docs": "postcss --config build/ --no-map --replace assets/css/docs.min.css", - "css-minify": "cleancss --level 1 --source-map --output dist/css/bootstrap.min.css dist/css/bootstrap.css && cleancss --level 1 --source-map --output dist/css/bootstrap-grid.min.css dist/css/bootstrap-grid.css && cleancss --level 1 --source-map --output dist/css/bootstrap-reboot.min.css dist/css/bootstrap-reboot.css", - "css-minify-docs": "cleancss --level 1 --source-map --output assets/css/docs.min.css assets/css/docs.min.css", + "css-minify": "cleancss --level 1 --source-map --source-map-inline-sources --output dist/css/bootstrap.min.css dist/css/bootstrap.css && cleancss --level 1 --source-map --source-map-inline-sources --output dist/css/bootstrap-grid.min.css dist/css/bootstrap-grid.css && cleancss --level 1 --source-map --source-map-inline-sources --output dist/css/bootstrap-reboot.min.css dist/css/bootstrap-reboot.css", + "css-minify-docs": "cleancss --level 1 --source-map --source-map-inline-sources --output assets/css/docs.min.css assets/css/docs.min.css", "js": "npm-run-all js-lint js-compile js-minify", "js-docs": "npm-run-all js-lint-docs js-minify-docs", "js-lint": "eslint js/ && eslint --config js/tests/.eslintrc.json --env node build/ Gruntfile.js", |