Remove whitespace in vue template

This commit is contained in:
qingwei.li 2016-10-22 00:45:18 +08:00
parent 706d47b710
commit 23d282bb4f
7 changed files with 8 additions and 4 deletions

View File

@ -13,6 +13,7 @@ Object.keys(dependencies).forEach(function(key) {
});
externals['element-ui/src/utils/clickoutside'] = 'element-ui/lib/utils/clickoutside';
externals['element-ui/src/utils/date'] = 'element-ui/lib/utils/date';
externals['element-ui/src/utils/popper'] = 'element-ui/lib/utils/popper';
externals['element-ui/src/utils/vue-popper'] = 'element-ui/lib/utils/vue-popper';
externals['element-ui/src/utils/resize-event'] = 'element-ui/lib/utils/resize-event';

View File

@ -14,5 +14,5 @@ cooking.set({
cooking.add('output.filename', 'element-ui.common.js');
cooking.add('loader.js.exclude', config.jsexclude);
cooking.add('vue.preserveWhitespace', false);
module.exports = cooking.resolve();

View File

@ -15,4 +15,5 @@ cooking.set({
cooking.add('output.filename', '[name]/index.js');
cooking.add('loader.js.exclude', config.jsexclude);
cooking.add('vue.preserveWhitespace', false);
module.exports = cooking.resolve();

View File

@ -14,5 +14,5 @@ cooking.set({
cooking.add('output.filename', 'index.js');
cooking.add('loader.js.exclude', config.jsexclude);
cooking.add('vue.preserveWhitespace', false);
module.exports = cooking.resolve();

View File

@ -91,4 +91,5 @@ if (process.env.NODE_ENV === 'production') {
cooking.add('externals.vue-router', 'VueRouter');
}
cooking.add('vue.preserveWhitespace', false);
module.exports = cooking.resolve();

View File

@ -24,4 +24,5 @@ cooking.add('preLoader.0', {
if (!process.env.CI_ENV) {
cooking.add('plugins.process', new ProgressBarPlugin());
}
cooking.add('vue.preserveWhitespace', false);
module.exports = cooking.resolve();

View File

@ -99,8 +99,8 @@
"theaterjs": "^3.0.0",
"uppercamelcase": "^1.1.0",
"url-loader": "^0.5.7",
"vue": "^2.0.2",
"vue-loader": "^9.5.1",
"vue": "^2.0.3",
"vue-loader": "^9.7.0",
"vue-markdown-loader": "^0.5.1",
"vue-router": "^2.0.0",
"webpack": "^1.13.2",