workflow-editor 0.9.85-dw-tmp1 → 0.9.85-dw-tmp2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,8 @@
1
1
  const path = require('path');
2
2
  const webpack = require('webpack');
3
3
  const pkg = require('../package.json');
4
- const VueLoaderPlugin = require('vue-loader/lib/plugin')
4
+ const VueLoaderPlugin = require('vue-loader/lib/plugin');
5
+ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
5
6
 
6
7
  function resolve(dir) {
7
8
  return path.join(__dirname, '..', dir);
@@ -20,7 +21,7 @@ module.exports = {
20
21
  {
21
22
  loader: 'css-loader',
22
23
  options: {
23
- sourceMap: true,
24
+ sourceMap: false,
24
25
  },
25
26
  },
26
27
  ],
@@ -29,13 +30,13 @@ module.exports = {
29
30
  {
30
31
  loader: 'css-loader',
31
32
  options: {
32
- sourceMap: true,
33
+ sourceMap: false,
33
34
  },
34
35
  },
35
36
  {
36
37
  loader: 'less-loader',
37
38
  options: {
38
- sourceMap: true,
39
+ sourceMap: false,
39
40
  },
40
41
  },
41
42
  ],
@@ -43,14 +44,14 @@ module.exports = {
43
44
  postLoaders: {
44
45
  html: 'babel-loader?sourceMap'
45
46
  },
46
- sourceMap: true,
47
+ sourceMap: false,
47
48
  }
48
49
  },
49
50
  {
50
51
  test: /\.js$/,
51
52
  loader: 'babel-loader',
52
53
  options: {
53
- sourceMap: true,
54
+ sourceMap: false,
54
55
  },
55
56
  exclude: /node_modules/,
56
57
  },
@@ -60,13 +61,13 @@ module.exports = {
60
61
  {
61
62
  loader: 'style-loader',
62
63
  options: {
63
- sourceMap: true,
64
+ sourceMap: false,
64
65
  },
65
66
  },
66
67
  {
67
68
  loader: 'css-loader',
68
69
  options: {
69
- sourceMap: true,
70
+ sourceMap: false,
70
71
  },
71
72
  }
72
73
  ]
@@ -74,22 +75,25 @@ module.exports = {
74
75
  {
75
76
  test: /\.less$/,
76
77
  loaders: [
78
+ // {
79
+ // loader: 'style-loader',
80
+ // options: {
81
+ // sourceMap: true,
82
+ // },
83
+ // },
77
84
  {
78
- loader: 'style-loader',
79
- options: {
80
- sourceMap: true,
81
- },
85
+ loader: MiniCssExtractPlugin.loader,
82
86
  },
83
87
  {
84
88
  loader: 'css-loader',
85
89
  options: {
86
- sourceMap: true,
90
+ sourceMap: false,
87
91
  },
88
92
  },
89
93
  {
90
94
  loader: 'less-loader',
91
95
  options: {
92
- sourceMap: true,
96
+ sourceMap: false,
93
97
  },
94
98
  },
95
99
  ]
@@ -97,22 +101,25 @@ module.exports = {
97
101
  {
98
102
  test: /\.scss$/,
99
103
  loaders: [
104
+ // {
105
+ // loader: 'style-loader',
106
+ // options: {
107
+ // sourceMap: true,
108
+ // },
109
+ // },
100
110
  {
101
- loader: 'style-loader',
102
- options: {
103
- sourceMap: true,
104
- },
111
+ loader: MiniCssExtractPlugin.loader
105
112
  },
106
113
  {
107
114
  loader: 'css-loader',
108
115
  options: {
109
- sourceMap: true,
116
+ sourceMap: false,
110
117
  },
111
118
  },
112
119
  {
113
120
  loader: 'sass-loader',
114
121
  options: {
115
- sourceMap: true,
122
+ sourceMap: false,
116
123
  },
117
124
  },
118
125
  ]
@@ -130,6 +137,32 @@ module.exports = {
130
137
  '@': resolve('src')
131
138
  }
132
139
  },
140
+ externals: { // 外部化对vue的依赖
141
+ vue: {
142
+ root: 'Vue',
143
+ commonjs: 'vue',
144
+ commonjs2: 'vue',
145
+ amd: 'vue'
146
+ },
147
+ vuex: {
148
+ root: 'Vuex',
149
+ commonjs: 'vuex',
150
+ commonjs2: 'vuex',
151
+ amd: 'vuex'
152
+ },
153
+ // 'vue-i18n': {
154
+ // root: 'VueI18n',
155
+ // commonjs: 'vue-i18n',
156
+ // commonjs2: 'vue-i18n',
157
+ // amd: 'vue-i18n'
158
+ // },
159
+ 'js-cookie': {
160
+ root: 'JsCookie',
161
+ commonjs: 'js-cookie',
162
+ commonjs2: 'js-cookie',
163
+ amd: 'js-cookie'
164
+ }
165
+ },
133
166
  plugins: [
134
167
  new webpack.optimize.ModuleConcatenationPlugin(),
135
168
  new webpack.DefinePlugin({
@@ -3,6 +3,9 @@ const webpack = require('webpack');
3
3
  const merge = require('webpack-merge');
4
4
  const webpackBaseConfig = require('./webpack.base.js');
5
5
  const components = require('./components.json')
6
+
7
+ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
8
+
6
9
  process.env.NODE_ENV = 'production';
7
10
 
8
11
  const basePath = path.resolve(__dirname, '../')
@@ -12,7 +15,7 @@ Object.keys(components).forEach(key => {
12
15
  })
13
16
 
14
17
  module.exports = merge(webpackBaseConfig, {
15
- devtool: 'source-map',
18
+ devtool: 'nosources',
16
19
  mode: "production",
17
20
  entry: entries,
18
21
  output: {
@@ -20,7 +23,7 @@ module.exports = merge(webpackBaseConfig, {
20
23
  publicPath: '/lib/',
21
24
  filename: '[name].js',
22
25
  chunkFilename: '[id].js',
23
- // library: 'lime-ui',
26
+ library: 'imatrix-ui',
24
27
  libraryTarget: 'umd',
25
28
  umdNamedDefine: true
26
29
  },
@@ -35,6 +38,9 @@ module.exports = merge(webpackBaseConfig, {
35
38
  plugins: [
36
39
  new webpack.DefinePlugin({
37
40
  'process.env.NODE_ENV': '"production"'
41
+ }),
42
+ new MiniCssExtractPlugin({
43
+ filename: 'css/[name].css'
38
44
  })
39
45
  ]
40
46
  });
@@ -2,11 +2,12 @@ const path = require('path');
2
2
  const webpack = require('webpack');
3
3
  const merge = require('webpack-merge');
4
4
  const webpackBaseConfig = require('./webpack.base.js');
5
+ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
5
6
 
6
7
  process.env.NODE_ENV = 'production';
7
8
 
8
9
  module.exports = merge(webpackBaseConfig, {
9
- devtool: 'source-map',
10
+ devtool: 'nosources',
10
11
  mode: "production",
11
12
  entry: {
12
13
  main: path.resolve(__dirname, '../src/index.js') // 将src下的index.js 作为入口点
@@ -19,17 +20,12 @@ module.exports = merge(webpackBaseConfig, {
19
20
  libraryTarget: 'umd',
20
21
  umdNamedDefine: true
21
22
  },
22
- externals: { // 外部化对vue的依赖
23
- vue: {
24
- root: 'Vue',
25
- commonjs: 'vue',
26
- commonjs2: 'vue',
27
- amd: 'vue'
28
- }
29
- },
30
23
  plugins: [
31
24
  new webpack.DefinePlugin({
32
25
  'process.env.NODE_ENV': '"production"'
26
+ }),
27
+ new MiniCssExtractPlugin({
28
+ filename: 'css/workflow-editor.css'
33
29
  })
34
30
  ]
35
31
  })
@@ -0,0 +1,16 @@
1
+ h3[data-v-9c5970fe]{color:#999999;margin:0;padding:0;font-weight:bold;font-size:18px}.el-button[data-v-9c5970fe]{margin:6px 0;min-width:110px;padding:9px 15px}.el-button i[data-v-9c5970fe]{padding-right:4px}
2
+
3
+ .group[data-v-70c39db1]{font-size:14px;width:100%}.item[data-v-70c39db1]{float:left;list-style-type:none;width:33.33%;margin-bottom:18px}.item-content[data-v-70c39db1]{height:calc(100vh - 300px);padding-left:20px;overflow:auto}
4
+
5
+ #appContainer[data-v-016e1d5a] .el-checkbox{display:block}#appContainer[data-v-016e1d5a] .el-transfer-panel{width:400px}#appContainer[data-v-016e1d5a] .ellipsis{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:keep-all;width:55%}
6
+
7
+ .tooltip[data-v-dd12406c]{position:absolute;background:#fff;min-width:150px;border-radius:4px;border:1px solid #ebeef5;padding:12px;z-index:2000;color:#606266;line-height:1.4;text-align:justify;font-size:14px;box-shadow:0 2px 12px 0 rgba(0,0,0,0.1);word-break:break-all}
8
+
9
+ li[data-v-2554d9c6]{color:#333}.context-menu[data-v-2554d9c6]{position:fixed;background:#fff;z-index:999;padding:5px;margin:0}.context-menu li[data-v-2554d9c6]{min-width:75px;height:28px;line-height:28px;text-align:left;color:#1a1a1a}.context-menu li[data-v-2554d9c6]:hover{background:#42b983;color:#fff}.context-menu[data-v-2554d9c6]{border:1px solid #eee;box-shadow:0 0.5em 1em 0 rgba(0,0,0,0.1);border-radius:5px}li[data-v-2554d9c6]{list-style-type:none}
10
+
11
+ .button-area[data-v-37937af4]{padding:5px 0 5px 5px;height:50px}.el-row[data-v-37937af4]{border:1px solid #f1f1f1;border-radius:5px}.el-col[data-v-37937af4]{padding-left:5px}.main[data-v-37937af4]{position:relative;display:flex;height:calc(100% - 50px);width:100%}.canvas-container[data-v-37937af4]{position:relative;height:calc(100% - 50px);width:100%}.toolbox[data-v-37937af4]{width:150px;overflow-y:auto;height:100%;background:#f7f7f7;padding:10px;text-align:center;flex:none}section[data-v-37937af4]{overflow:hidden;flex:1 1 auto;height:100%;padding:0}.tabs[data-v-37937af4]{height:100%;width:100%}.tab-pane[data-v-37937af4]{height:100%;width:100%}.tabs[data-v-37937af4] .el-tabs__content{height:calc(100% - 41px);padding:10px;width:100%}.canvas[data-v-37937af4],.xml[data-v-37937af4]{overflow:auto;height:100%;width:100%;padding:0;min-height:500px}pre[data-v-37937af4]{margin:0;font-size:16px}.component-icon[data-v-37937af4]{position:absolute;pointer-events:none}.canvas[data-v-37937af4] .draggable{cursor:move}
12
+
13
+ #_subprocess-content[data-v-d95c25fc]{width:100%;height:calc(100vh - 200px)}
14
+
15
+ .main[data-v-422096c3]{position:relative;display:flex;height:100%;width:100%}.canvas-container[data-v-422096c3]{position:relative;height:100%;width:100%}section[data-v-422096c3]{overflow:hidden;width:100%;height:100%;padding:0}.canvas[data-v-422096c3]{overflow:auto;height:100%;padding:0;min-height:500px}.canvas[data-v-422096c3] .draggable{cursor:default}
16
+