ce-crm-ui-components 1.4.136 → 1.4.138

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.
package/index.html CHANGED
@@ -1,16 +1,16 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <title>@ce-crm-ui/components</title>
6
- <link rel="stylesheet" href="https://unpkg.com/element-ui@2.15.0/lib/theme-chalk/index.css">
7
- <!-- 在引入 ElementUI 之前引入 Vue,会注入全局变量 Vue -->
8
- <script src="https://unpkg.com/vue@2.6.14/dist/vue.js"></script>
9
- <!-- 引入 ElementUI 组件库,会注入全局变量 -->
10
- <script src="https://unpkg.com/element-ui@2.15.0/lib/index.js"></script>
11
- </head>
12
- <body>
13
- <div id="app"></div>
14
- <script src="/dist/build.js"></script>
15
- </body>
16
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>@ce-crm-ui/components</title>
6
+ <link rel="stylesheet" href="https://unpkg.com/element-ui@2.15.0/lib/theme-chalk/index.css">
7
+ <!-- 在引入 ElementUI 之前引入 Vue,会注入全局变量 Vue -->
8
+ <script src="https://unpkg.com/vue@2.6.14/dist/vue.js"></script>
9
+ <!-- 引入 ElementUI 组件库,会注入全局变量 -->
10
+ <script src="https://unpkg.com/element-ui@2.15.0/lib/index.js"></script>
11
+ </head>
12
+ <body>
13
+ <div id="app"></div>
14
+ <script src="/dist/build.js"></script>
15
+ </body>
16
+ </html>
package/package.json CHANGED
@@ -1,37 +1,37 @@
1
- {
2
- "name": "ce-crm-ui-components",
3
- "description": "晶芯物联UI组件",
4
- "version": "1.4.136",
5
- "author": "yongfeng <1102772410@qq.com>",
6
- "license": "MIT",
7
- "private": false,
8
- "main": "dist/ce-crm-ui-components.js",
9
- "scripts": {
10
- "dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",
11
- "build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
12
- },
13
- "dependencies": {
14
- "url-loader": "^4.1.1",
15
- "vue": "^2.5.11"
16
- },
17
- "browserslist": [
18
- "> 1%",
19
- "last 2 versions",
20
- "not ie <= 8"
21
- ],
22
- "devDependencies": {
23
- "babel-core": "^6.26.0",
24
- "babel-loader": "^7.1.2",
25
- "babel-preset-env": "^1.6.0",
26
- "babel-preset-stage-3": "^6.24.1",
27
- "cross-env": "^5.0.5",
28
- "css-loader": "^0.28.7",
29
- "file-loader": "^1.1.4",
30
- "sass": "1.32.0",
31
- "sass-loader": "7.3.1",
32
- "vue-loader": "^13.0.5",
33
- "vue-template-compiler": "^2.4.4",
34
- "webpack": "^3.6.0",
35
- "webpack-dev-server": "^2.9.1"
36
- }
37
- }
1
+ {
2
+ "name": "ce-crm-ui-components",
3
+ "description": "晶芯物联UI组件",
4
+ "version": "1.4.138",
5
+ "author": "yongfeng <1102772410@qq.com>",
6
+ "license": "MIT",
7
+ "private": false,
8
+ "main": "dist/ce-crm-ui-components.js",
9
+ "scripts": {
10
+ "dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",
11
+ "build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
12
+ },
13
+ "dependencies": {
14
+ "url-loader": "^4.1.1",
15
+ "vue": "^2.5.11"
16
+ },
17
+ "browserslist": [
18
+ "> 1%",
19
+ "last 2 versions",
20
+ "not ie <= 8"
21
+ ],
22
+ "devDependencies": {
23
+ "babel-core": "^6.26.0",
24
+ "babel-loader": "^7.1.2",
25
+ "babel-preset-env": "^1.6.0",
26
+ "babel-preset-stage-3": "^6.24.1",
27
+ "cross-env": "^5.0.5",
28
+ "css-loader": "^0.28.7",
29
+ "file-loader": "^1.1.4",
30
+ "sass": "1.32.0",
31
+ "sass-loader": "7.3.1",
32
+ "vue-loader": "^13.0.5",
33
+ "vue-template-compiler": "^2.4.4",
34
+ "webpack": "^3.6.0",
35
+ "webpack-dev-server": "^2.9.1"
36
+ }
37
+ }
package/webpack.config.js CHANGED
@@ -1,95 +1,95 @@
1
- var path = require('path')
2
- var webpack = require('webpack')
3
-
4
- module.exports = {
5
- entry: process.env.NODE_ENV == 'development' ? './src/main.js' : './src/components/index.js',
6
- externals: {
7
- 'vue': 'Vue',
8
- 'element-ui': 'ELEMENT'
9
- },
10
- output: {
11
- path: path.resolve(__dirname, './dist'),
12
- publicPath: '/dist/',
13
- filename: 'ce-crm-ui-components.js',
14
- library: 'ce-crm-ui-components',
15
- libraryTarget: 'umd', // 指定输出格式
16
- umdNamedDefine: true // 会对 UMD 的构建过程中的 AMD 模块进行命名。否则就使用匿名的 define
17
- },
18
- module: {
19
- rules: [
20
- {
21
- test: /\.css$/,
22
- use: [
23
- 'vue-style-loader',
24
- 'css-loader'
25
- ],
26
- },
27
- {
28
- test: /\.vue$/,
29
- loader: 'vue-loader',
30
- options: {
31
- loaders: {
32
- }
33
- // other vue-loader options go here
34
- }
35
- },
36
- {
37
- test: /\.js$/,
38
- loader: 'babel-loader',
39
- exclude: /node_modules/
40
- },
41
- {
42
- test: /\.(png|jpg|gif|svg)$/,
43
- loader: 'url-loader',
44
- options: {
45
- // limit: 100,
46
- esModule: false
47
- // name: 'images/[name].[ext]?[hash]'
48
- }
49
- }
50
- // {
51
- // test: /\.(png|jpg|gif|svg)$/,
52
- // loader: 'file-loader',
53
- // options: {
54
- // name: '[name].[ext]?[hash]'
55
- // }
56
- // }
57
- ]
58
- },
59
- resolve: {
60
- alias: {
61
- 'vue$': 'vue/dist/vue.esm.js'
62
- },
63
- extensions: ['*', '.js', '.vue', '.json']
64
- },
65
- devServer: {
66
- historyApiFallback: true,
67
- noInfo: true,
68
- overlay: true
69
- },
70
- performance: {
71
- hints: false
72
- },
73
- devtool: '#eval-source-map'
74
- }
75
-
76
- if (process.env.NODE_ENV === 'production') {
77
- module.exports.devtool = '#source-map'
78
- // http://vue-loader.vuejs.org/en/workflow/production.html
79
- module.exports.plugins = (module.exports.plugins || []).concat([
80
- new webpack.DefinePlugin({
81
- 'process.env': {
82
- NODE_ENV: '"production"'
83
- }
84
- }),
85
- new webpack.optimize.UglifyJsPlugin({
86
- sourceMap: false,
87
- compress: {
88
- warnings: false
89
- }
90
- }),
91
- new webpack.LoaderOptionsPlugin({
92
- minimize: true
93
- })
94
- ])
95
- }
1
+ var path = require('path')
2
+ var webpack = require('webpack')
3
+
4
+ module.exports = {
5
+ entry: process.env.NODE_ENV == 'development' ? './src/main.js' : './src/components/index.js',
6
+ externals: {
7
+ 'vue': 'Vue',
8
+ 'element-ui': 'ELEMENT'
9
+ },
10
+ output: {
11
+ path: path.resolve(__dirname, './dist'),
12
+ publicPath: '/dist/',
13
+ filename: 'ce-crm-ui-components.js',
14
+ library: 'ce-crm-ui-components',
15
+ libraryTarget: 'umd', // 指定输出格式
16
+ umdNamedDefine: true // 会对 UMD 的构建过程中的 AMD 模块进行命名。否则就使用匿名的 define
17
+ },
18
+ module: {
19
+ rules: [
20
+ {
21
+ test: /\.css$/,
22
+ use: [
23
+ 'vue-style-loader',
24
+ 'css-loader'
25
+ ],
26
+ },
27
+ {
28
+ test: /\.vue$/,
29
+ loader: 'vue-loader',
30
+ options: {
31
+ loaders: {
32
+ }
33
+ // other vue-loader options go here
34
+ }
35
+ },
36
+ {
37
+ test: /\.js$/,
38
+ loader: 'babel-loader',
39
+ exclude: /node_modules/
40
+ },
41
+ {
42
+ test: /\.(png|jpg|gif|svg)$/,
43
+ loader: 'url-loader',
44
+ options: {
45
+ // limit: 100,
46
+ esModule: false
47
+ // name: 'images/[name].[ext]?[hash]'
48
+ }
49
+ }
50
+ // {
51
+ // test: /\.(png|jpg|gif|svg)$/,
52
+ // loader: 'file-loader',
53
+ // options: {
54
+ // name: '[name].[ext]?[hash]'
55
+ // }
56
+ // }
57
+ ]
58
+ },
59
+ resolve: {
60
+ alias: {
61
+ 'vue$': 'vue/dist/vue.esm.js'
62
+ },
63
+ extensions: ['*', '.js', '.vue', '.json']
64
+ },
65
+ devServer: {
66
+ historyApiFallback: true,
67
+ noInfo: true,
68
+ overlay: true
69
+ },
70
+ performance: {
71
+ hints: false
72
+ },
73
+ devtool: '#eval-source-map'
74
+ }
75
+
76
+ if (process.env.NODE_ENV === 'production') {
77
+ module.exports.devtool = '#source-map'
78
+ // http://vue-loader.vuejs.org/en/workflow/production.html
79
+ module.exports.plugins = (module.exports.plugins || []).concat([
80
+ new webpack.DefinePlugin({
81
+ 'process.env': {
82
+ NODE_ENV: '"production"'
83
+ }
84
+ }),
85
+ new webpack.optimize.UglifyJsPlugin({
86
+ sourceMap: false,
87
+ compress: {
88
+ warnings: false
89
+ }
90
+ }),
91
+ new webpack.LoaderOptionsPlugin({
92
+ minimize: true
93
+ })
94
+ ])
95
+ }