@vixoniccom/module-packager 2.5.0-dev.0 → 2.5.0-dev.1
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/webpack.config.js +10 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [2.5.0-dev.1](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.5.0-dev.0...v2.5.0-dev.1) (2021-08-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **release:** CopyWebpackPlugin options were updated in webpack config ([35b8178](https://gitlab.com/mandomedio/vixonic/module-packager/commit/35b8178fd5b7dc4366774989d75b1fad41703a14))
|
|
11
|
+
|
|
5
12
|
## [2.5.0-dev.0](https://gitlab.com/mandomedio/vixonic/module-packager/compare/v2.4.3-dev.0...v2.5.0-dev.0) (2021-08-19)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
package/webpack.config.js
CHANGED
|
@@ -99,7 +99,14 @@ module.exports = (options) => {
|
|
|
99
99
|
callback()
|
|
100
100
|
},
|
|
101
101
|
plugins: [
|
|
102
|
-
new CopyWebpackPlugin(
|
|
102
|
+
new CopyWebpackPlugin(
|
|
103
|
+
{
|
|
104
|
+
patterns: [{ from: path.resolve(options.src, 'static'), to: 'static/' }]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
copyUnmodified: true
|
|
108
|
+
}
|
|
109
|
+
),
|
|
103
110
|
new HtmlWebpackPlugin({
|
|
104
111
|
inject: 'head',
|
|
105
112
|
template: path.resolve(options.src, 'index.html')
|
|
@@ -123,7 +130,7 @@ module.exports = (options) => {
|
|
|
123
130
|
|
|
124
131
|
if (options.mode === 'watch') {
|
|
125
132
|
config.entry.unshift(`webpack-dev-server/client?http://localhost:${options.port}/`, 'webpack/hot/dev-server', path.resolve(options.src, 'index.html'))
|
|
126
|
-
config.plugins.unshift(new CopyWebpackPlugin([{ from: path.resolve(options.src, 'test'), to: 'test/' }], { copyUnmodified: true }))
|
|
133
|
+
config.plugins.unshift(new CopyWebpackPlugin({ patterns: [{ from: path.resolve(options.src, 'test'), to: 'test/' }] }, { copyUnmodified: true }))
|
|
127
134
|
config.plugins.unshift(new webpack.HotModuleReplacementPlugin())
|
|
128
135
|
config.output.publicPath = `http://localhost:${options.port}/`
|
|
129
136
|
config.devtool = 'source-map'
|
|
@@ -154,7 +161,7 @@ module.exports = (options) => {
|
|
|
154
161
|
)
|
|
155
162
|
|
|
156
163
|
if (options.mode === 'run') {
|
|
157
|
-
config.plugins.unshift(new CopyWebpackPlugin([{ from: path.resolve(options.src, 'test'), to: 'test/' }], { copyUnmodified: true }))
|
|
164
|
+
config.plugins.unshift(new CopyWebpackPlugin({ patterns: [{ from: path.resolve(options.src, 'test'), to: 'test/' }] }, { copyUnmodified: true }))
|
|
158
165
|
}
|
|
159
166
|
}
|
|
160
167
|
|