Skip to content

Commit

Permalink
feat:support build mode ui view
Browse files Browse the repository at this point in the history
  • Loading branch information
caoli committed Sep 13, 2017
1 parent 0d9b277 commit f8e5f1f
Show file tree
Hide file tree
Showing 7 changed files with 15,878 additions and 5 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"new-cap": "off",
"newline-after-var": "off",
"no-invalid-this": "off",
"no-unused-vars": "off",
"quotes": [
"error",
"single"
Expand Down
26 changes: 26 additions & 0 deletions config/loader.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@
'use strict';

exports.css = {
use: []
};

exports.scss = {
use: ['sass-loader']
};

exports.sass = {
use: [{
loader: 'sass-loader',
options: {
indentedSyntax: true
}
}]
};

exports.less = {
use: ['less-loader']
};

exports.stylus = {
use: ['stylus-loader']
};

exports.weex = {
test: /\.vue$/,
type: 'weex',
Expand Down
2 changes: 1 addition & 1 deletion lib/weex.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class WebpackWeexBuilder extends WebpackBaseBuilder(EasyWebpack.WebpackClientBui
this.type = 'weex';
this.setPrefix('weex');
this.setExternals(['vue']);
this.setConfig({ hash: false });
this.setConfig({ hash: false, hot: false });
}
}
module.exports = WebpackWeexBuilder;
Loading

0 comments on commit f8e5f1f

Please sign in to comment.