You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ji...@apache.org on 2017/03/31 02:44:30 UTC

[14/50] [abbrv] incubator-weex git commit: * [html5] add comment.

* [html5] add comment.


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/611f41e6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/611f41e6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/611f41e6

Branch: refs/heads/0.11-dev
Commit: 611f41e6620afb6463cb33119fd94140272ecb9f
Parents: 7768b4c
Author: MrRaindrop <te...@gmail.com>
Authored: Thu Mar 23 17:37:35 2017 +0800
Committer: MrRaindrop <te...@gmail.com>
Committed: Thu Mar 23 17:37:35 2017 +0800

----------------------------------------------------------------------
 build/webpack.examples.web.config.js | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/611f41e6/build/webpack.examples.web.config.js
----------------------------------------------------------------------
diff --git a/build/webpack.examples.web.config.js b/build/webpack.examples.web.config.js
index 361b79c..91ed882 100644
--- a/build/webpack.examples.web.config.js
+++ b/build/webpack.examples.web.config.js
@@ -1,3 +1,8 @@
+/**
+ * you should use vue-loader to pack .vue files for weex-vue-render.
+ * you definitely should use compoilerModules to add $processStyle for weex-vue-render.
+ */
+
 var path = require('path');
 var fs = require('fs-extra');
 var webpack = require('webpack');
@@ -43,6 +48,7 @@ var bannerPlugin = new webpack.BannerPlugin(banner, {
   exclude: bannerExcludeFiles
 })
 
+
 module.exports = {
   entry: entry,
   output: {
@@ -62,6 +68,10 @@ module.exports = {
     ]
   },
   vue: {
+    /**
+     * important! should use postTransformNode to add $processStyle for
+     * inline style prefixing.
+     */
     compilerModules: [
       {
         postTransformNode: el => {