split bundle and demo dir

This commit is contained in:
pengfei.zhou 2019-07-18 16:31:50 +08:00
parent 2a34d7b638
commit 13c5719af1
4 changed files with 5 additions and 4 deletions

View File

@ -18,7 +18,7 @@ android {
} }
sourceSets { sourceSets {
main { main {
assets.srcDirs = [project.rootDir.getParent() + "/js-framework/bundle"] assets.srcDirs = [project.rootDir.getParent() + "/js-framework/demo"]
} }
} }
} }

View File

@ -1,3 +1,4 @@
node_modules/ node_modules/
build/ build/
bundle/ bundle/
demo/

View File

@ -30,10 +30,10 @@ export default [
] ]
}, },
{ {
input: "build/index.test.js", input: "build/demo.js",
output: { output: {
format: "cjs", format: "cjs",
file: "bundle/test.js", file: "demo/demo.js",
}, },
sourceMap: true, sourceMap: true,
plugins: [ plugins: [