split bundle and demo dir
This commit is contained in:
parent
2a34d7b638
commit
13c5719af1
@ -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"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
3
js-framework/.gitignore
vendored
3
js-framework/.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
build/
|
build/
|
||||||
bundle/
|
bundle/
|
||||||
|
demo/
|
@ -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: [
|
||||||
|
Reference in New Issue
Block a user