Skip to content

Commit

Permalink
update the weexpack-create
Browse files Browse the repository at this point in the history
  • Loading branch information
侑夕 committed Nov 17, 2017
1 parent 4197bc9 commit ee820f3
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "weexpack-create",
"version": "0.1.10-beta6",
"version": "0.1.10-beta7",
"description": "weexpack create module. Creates new project from default or template",
"main": "bin/index.js",
"repository": {
Expand Down
18 changes: 17 additions & 1 deletion templates/web/index.dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,23 @@
<meta name="apple-touch-fullscreen" content="yes">
<meta name="format-detection" content="telephone=no, email=no">
<!-- <style>body > div { height: 100%; }</style> -->
<style>body::before { content: "1"; height: 1px; overflow: hidden; color: transparent; display: block; }</style>
<style>
html, body {
-ms-overflow-style: scrollbar;
-webkit-tap-highlight-color: transparent;
padding: 0;
margin: 0;
width: 100%;
height: 100%;
}
body::before {
content: "1";
height: 1px;
overflow: hidden;
color: transparent;
display: block;
}
</style>
<script src="../node_modules/vue/dist/vue.runtime.js"></script>
<script src="../node_modules/weex-vue-render/dist/index.js"></script>
</head>
Expand Down
18 changes: 17 additions & 1 deletion templates/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,23 @@
<meta name="apple-touch-fullscreen" content="yes">
<meta name="format-detection" content="telephone=no, email=no">
<!-- <style>body > div { height: 100%; }</style> -->
<style>body::before { content: "1"; height: 1px; overflow: hidden; color: transparent; display: block; }</style>
<style>
html, body {
-ms-overflow-style: scrollbar;
-webkit-tap-highlight-color: transparent;
padding: 0;
margin: 0;
width: 100%;
height: 100%;
}
body::before {
content: "1";
height: 1px;
overflow: hidden;
color: transparent;
display: block;
}
</style>
<script src="../node_modules/vue/dist/vue.runtime.js"></script>
<script src="../node_modules/weex-vue-render/dist/index.js"></script>
</head>
Expand Down
12 changes: 11 additions & 1 deletion templates/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,17 @@ const webConfig = {
}, {
test: /\.vue(\?[^?]+)?$/,
use: [{
loader: 'vue-loader'
loader: 'vue-loader',
options: {
compilerModules: [
{
postTransformNode: el => {
el.staticStyle = `$processStyle(${el.staticStyle})`
el.styleBinding = `$processStyle(${el.styleBinding})`
}
}
]
}
}]
}]
},
Expand Down

0 comments on commit ee820f3

Please sign in to comment.