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": "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"
|
||||||
},
|
},
|
||||||
|
@ -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'}
|
||||||
}),
|
}),
|
||||||
|
Loading…
Reference in New Issue
Block a user