Skip to content

Commit 9089cf5

Browse files
authored
Merge pull request #153 from NHSDigital/fix-source-maps-in-dev
Ensure source maps are included in asset compilation
2 parents 2a2f1c6 + 7225884 commit 9089cf5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
],
77
"scripts": {
88
"compile": "concurrently npm:compile:js npm:compile:css --group --prefix none",
9-
"compile:css": "sass --color --quiet-deps --load-path=node_modules lung_cancer_screening/assets/sass:lung_cancer_screening/assets/compiled/css",
9+
"compile:css": "sass --color --quiet-deps --embed-sources --load-path=node_modules lung_cancer_screening/assets/sass:lung_cancer_screening/assets/compiled/css",
1010
"compile:css:watch": "npm run compile:css -- --watch",
1111
"compile:js": "rollup -c rollup.config.js --sourcemap",
1212
"compile:js:watch": "npm run compile:js -- --watch",

rollup.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default {
1414
compact: true,
1515
format: 'es',
1616
file: 'lung_cancer_screening/assets/compiled/js/bundle.js',
17+
sourcemap: true,
1718

1819
plugins: [
1920
// Minification using terser

0 commit comments

Comments
 (0)