@dcloudio/uni-quickapp-native 2.0.1-35420220803001 → 2.0.1-36220220914001
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/lib/configure-webpack.js +8 -5
- package/package.json +2 -2
package/lib/configure-webpack.js
CHANGED
|
@@ -2,6 +2,7 @@ const path = require('path')
|
|
|
2
2
|
|
|
3
3
|
const webpack = require('webpack')
|
|
4
4
|
const CopyPlugin = require('copy-webpack-plugin')
|
|
5
|
+
const CopyPluginVersion = Number(require('copy-webpack-plugin/package.json').version.split('.')[0])
|
|
5
6
|
|
|
6
7
|
const HandlerPlugin = require('@hap-toolkit/packager/lib/plugin/handler-plugin')
|
|
7
8
|
const ZipPlugin = require('@hap-toolkit/packager/lib/plugin/zip-plugin')
|
|
@@ -39,6 +40,11 @@ function genPriorities (entryPagePath) {
|
|
|
39
40
|
|
|
40
41
|
const uniCloudPath = require.resolve('@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js')
|
|
41
42
|
|
|
43
|
+
const patterns = [{
|
|
44
|
+
from: path.resolve(__dirname, '../dist/' + dslFilename),
|
|
45
|
+
to: 'dsl.js'
|
|
46
|
+
}]
|
|
47
|
+
|
|
42
48
|
module.exports = {
|
|
43
49
|
devtool: false,
|
|
44
50
|
entry () {
|
|
@@ -77,10 +83,7 @@ module.exports = {
|
|
|
77
83
|
new webpack.ProvidePlugin({
|
|
78
84
|
uniCloud: [uniCloudPath, 'default']
|
|
79
85
|
}),
|
|
80
|
-
new CopyPlugin(
|
|
81
|
-
from: path.resolve(__dirname, '../dist/' + dslFilename),
|
|
82
|
-
to: 'dsl.js'
|
|
83
|
-
}]),
|
|
86
|
+
new CopyPlugin(CopyPluginVersion > 5 ? { patterns } : patterns),
|
|
84
87
|
new HandlerPlugin({}),
|
|
85
88
|
new Css2jsonPlugin(),
|
|
86
89
|
new InstVuePlugin(),
|
|
@@ -101,4 +104,4 @@ module.exports = {
|
|
|
101
104
|
}),
|
|
102
105
|
new NotifyPlugin()
|
|
103
106
|
]
|
|
104
|
-
}
|
|
107
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-quickapp-native",
|
|
3
|
-
"version": "2.0.1-
|
|
3
|
+
"version": "2.0.1-36220220914001",
|
|
4
4
|
"description": "uni-app quickapp-native",
|
|
5
5
|
"main": "dist/vue.prod.js",
|
|
6
6
|
"repository": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"author": "fxy060608",
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "67fdc447148dd3e05d528bfb4e5ed103430ec05b",
|
|
23
23
|
"uni-app": {
|
|
24
24
|
"name": "quickapp-native",
|
|
25
25
|
"title": "快应用(Native)版"
|