forked from MTSR/mapserver
fix rollup-error and use commonjs for the rollup-config
This commit is contained in:
parent
f3b3e189b0
commit
98279eec40
@ -6,7 +6,7 @@
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"jshint": "cd js && jshint .",
|
||||
"bundle": "cd js && rollup -c rollup.config.js"
|
||||
"bundle": "rollup -c rollup.config.js"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
|
@ -1,8 +1,8 @@
|
||||
|
||||
export default {
|
||||
input: 'main.js',
|
||||
module.exports = {
|
||||
input: 'js/main.js',
|
||||
output: {
|
||||
file :'bundle.js',
|
||||
file :'js/bundle.js',
|
||||
format: 'iife',
|
||||
sourcemap: true,
|
||||
compact: true
|
Loading…
Reference in New Issue
Block a user