Add sourcemaps, fix Sass compilation.

This commit is contained in:
Don McCurdy 2018-01-20 16:18:04 -08:00
parent 00c825f6c8
commit 75a7ec3509
2 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,7 @@
"build": "rollup -c && rollup -c rollup.config.min.js", "build": "rollup -c && rollup -c rollup.config.min.js",
"build-docs": "jsdoc2md -f src/dat/gui/GUI.js src/dat/controllers/Controller.js src/dat/controllers/NumberController.js | replace-between --target API.md --token API", "build-docs": "jsdoc2md -f src/dat/gui/GUI.js src/dat/controllers/Controller.js src/dat/controllers/NumberController.js | replace-between --target API.md --token API",
"lint": "eslint src", "lint": "eslint src",
"preversion": "npm run lint",
"version": "npm run build && git add -A build", "version": "npm run build && git add -A build",
"postversion": "git push && git push --tags && npm publish" "postversion": "git push && git push --tags && npm publish"
}, },

View File

@ -26,10 +26,12 @@ export default {
file: './build/dat.gui.js', file: './build/dat.gui.js',
format: 'umd', format: 'umd',
name: 'dat', name: 'dat',
sourcemap: true,
banner: banner banner: banner
}, { }, {
file: './build/dat.gui.module.js', file: './build/dat.gui.module.js',
format: 'es', format: 'es',
sourcemap: true,
banner: banner banner: banner
}], }],
watch: { watch: {
@ -38,6 +40,7 @@ export default {
plugins: [ plugins: [
resolve(), resolve(),
sass({ sass({
insert: true,
output: 'build/dat.gui.css', output: 'build/dat.gui.css',
options: {outputStyle: 'compressed'} options: {outputStyle: 'compressed'}
}), }),