forked from apache/incubator-weex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [html5] modify the build script of vue renderer
- Loading branch information
1 parent
bba11db
commit 9905211
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { rollup } from 'rollup' | ||
import eslint from 'rollup-plugin-eslint' | ||
import postcss from 'rollup-plugin-postcss' | ||
import replace from 'rollup-plugin-replace' | ||
import nodeResolve from 'rollup-plugin-node-resolve' | ||
import commonjs from 'rollup-plugin-commonjs' | ||
import buble from 'rollup-plugin-buble' | ||
|
||
export default { | ||
moduleName: 'VueRenderer', | ||
entry: './html5/render/vue/index.js', | ||
dest: './dist/vue-renderer.js', | ||
format: 'umd', | ||
sourceMap: 'inline', | ||
plugins: [ | ||
eslint(), | ||
postcss(), | ||
replace({ | ||
'process.env.NODE_ENV': JSON.stringify('production'), | ||
'process.env.VUE_ENV': JSON.stringify('weex'), | ||
'process.env.NODE_DEBUG': false | ||
}), | ||
nodeResolve({ | ||
jsnext: true, | ||
main: true | ||
}), | ||
commonjs(), | ||
buble() | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters