Skip to content

Commit d30acce

Browse files
author
zhongzhenlong
committed
add mock,未完待续
1 parent 2ea9d70 commit d30acce

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

build/webpack.base.conf.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,14 @@ module.exports = {
4343
{
4444
test: /\.js$/,
4545
loader: 'babel-loader',
46-
exclude: /(node_modules|bower_components)/,
47-
include: [resolve('src'), resolve('test')]
46+
//exclude: /(node_modules|bower_components)/,
47+
// 注意elementUI的源码使用ES6需要解析
48+
include: [
49+
resolve('src'),
50+
resolve('test'),
51+
resolve('/node_modules/.1.4.8@element-ui/src'),
52+
resolve('/node_modules/.1.4.8@element-ui/packages')
53+
]
4854
},
4955
{
5056
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,

build/webpack.dev.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = merge(baseWebpackConfig, {
1616
rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap })
1717
},
1818
// cheap-module-eval-source-map is faster for development
19-
devtool: '#cheap-module-eval-source-map',
19+
//devtool: '#cheap-module-eval-source-map',
2020
plugins: [
2121
new webpack.DefinePlugin({
2222
'process.env': config.dev.env

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'babel-polyfill'
2-
import 'eventsource-polyfill'
2+
// import 'eventsource-polyfill'
33
import Vue from "vue";
44
import frame from "./frame.vue";
55
import router from "./router";

0 commit comments

Comments
 (0)