mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Add sourcemaps, fix Sass compilation.
This commit is contained in:
parent
00c825f6c8
commit
75a7ec3509
@ -12,6 +12,7 @@
|
||||
"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",
|
||||
"lint": "eslint src",
|
||||
"preversion": "npm run lint",
|
||||
"version": "npm run build && git add -A build",
|
||||
"postversion": "git push && git push --tags && npm publish"
|
||||
},
|
||||
|
@ -26,10 +26,12 @@ export default {
|
||||
file: './build/dat.gui.js',
|
||||
format: 'umd',
|
||||
name: 'dat',
|
||||
sourcemap: true,
|
||||
banner: banner
|
||||
}, {
|
||||
file: './build/dat.gui.module.js',
|
||||
format: 'es',
|
||||
sourcemap: true,
|
||||
banner: banner
|
||||
}],
|
||||
watch: {
|
||||
@ -38,6 +40,7 @@ export default {
|
||||
plugins: [
|
||||
resolve(),
|
||||
sass({
|
||||
insert: true,
|
||||
output: 'build/dat.gui.css',
|
||||
options: {outputStyle: 'compressed'}
|
||||
}),
|
||||
|
Loading…
Reference in New Issue
Block a user