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