weexpack-create
Advanced tools
Comparing version 0.2.12 to 1.0.0
{ | ||
"name": "weexpack-create", | ||
"version": "0.2.12", | ||
"version": "1.0.0", | ||
"description": "weexpack create module. Creates new project from default or template", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -121,7 +121,20 @@ const path = require('path'); | ||
*/ | ||
optimizeSSR: false, | ||
compilerModules: [{ | ||
optimizeSSR: false, | ||
postcss: [ | ||
require('postcss-plugin-weex')(), // 对非标准样式做转换. | ||
require('autoprefixer')({ | ||
browsers: ['> 0.1%', 'ios >= 8', 'not ie < 12'] | ||
}), | ||
require('postcss-plugin-px2rem')({ | ||
rootValue: 75, // base on 750px. | ||
minPixelValue: 1.01 // ignore 1px. | ||
}) | ||
], | ||
compilerModules: [{ | ||
postTransformNode: el => { | ||
el.staticStyle = `$processStyle(${el.staticStyle})` | ||
el.styleBinding = `$processStyle(${el.styleBinding})` | ||
require('weex-vue-precompiler')({ | ||
// 使用了 aliweex 的项目需要配置 aliweex 为 | ||
// true 以支持 aliweex 的组件. | ||
aliweex: true | ||
})(el) | ||
} | ||
@@ -128,0 +141,0 @@ }] |
@@ -105,4 +105,6 @@ // { "framework": "Vue"} | ||
}) | ||
if (typeof __register_static_styles__ === "function") { | ||
__register_static_styles__(__vue_options__._scopeId, __vue_styles__) | ||
if (typeof weex === "object" && weex && weex.document) { | ||
try { | ||
weex.document.registerStyleSheets(__vue_options__._scopeId, __vue_styles__) | ||
} catch (e) {} | ||
} | ||
@@ -109,0 +111,0 @@ |
@@ -32,5 +32,6 @@ { | ||
"weex-html5": "^0.4.1", | ||
"weex-vue-render": "^0.12.26" | ||
"weex-vue-render": "^1.0.13" | ||
}, | ||
"devDependencies": { | ||
"autoprefixer": "^7.2.5", | ||
"babel-core": "^6.21.0", | ||
@@ -65,2 +66,4 @@ "babel-eslint": "^8.0.3", | ||
"postcss-loader": "^2.0.9", | ||
"postcss-plugin-px2rem": "^0.7.0", | ||
"postcss-plugin-weex": "^0.1.5", | ||
"raw-loader": "^0.5.1", | ||
@@ -71,3 +74,3 @@ "rimraf": "^2.6.2", | ||
"sinon-chai": "^2.14.0", | ||
"vue-loader": "^12.2.0", | ||
"vue-loader": "^13.7.0", | ||
"vue-style-loader": "^3.0.3", | ||
@@ -78,3 +81,4 @@ "vue-template-compiler": "^2.5.11", | ||
"webpack-merge": "^4.1.0", | ||
"weex-loader": "^0.6.7" | ||
"weex-loader": "^0.6.9", | ||
"weex-vue-precompiler": "^0.1.17" | ||
}, | ||
@@ -81,0 +85,0 @@ "optionalDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1474681
40223
1
52