Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 4782bf6

Browse files
Dimitar Tachevvchimev
Dimitar Tachev
authored andcommitted
fix: globs usage in CopyWebpackPlugin (#700)
1 parent 2514396 commit 4782bf6

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

Diff for: templates/webpack.angular.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@ module.exports = env => {
222222
]),
223223
// Copy assets to out dir. Add your own globs as needed.
224224
new CopyWebpackPlugin([
225-
{ from: "fonts/**" },
226-
{ from: "**/*.jpg" },
227-
{ from: "**/*.png" },
225+
{ from: { glob: "fonts/**" } },
226+
{ from: { glob: "**/*.jpg" } },
227+
{ from: { glob: "**/*.png" } },
228228
], { ignore: [`${relative(appPath, appResourcesFullPath)}/**`] }),
229229
// Generate a bundle starter script and activate it in package.json
230230
new nsWebpack.GenerateBundleStarterPlugin([

Diff for: templates/webpack.javascript.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ module.exports = env => {
204204
]),
205205
// Copy assets to out dir. Add your own globs as needed.
206206
new CopyWebpackPlugin([
207-
{ from: "fonts/**" },
208-
{ from: "**/*.jpg" },
209-
{ from: "**/*.png" },
207+
{ from: { glob: "fonts/**" } },
208+
{ from: { glob: "**/*.jpg" } },
209+
{ from: { glob: "**/*.png" } },
210210
], { ignore: [`${relative(appPath, appResourcesFullPath)}/**`] }),
211211
// Generate a bundle starter script and activate it in package.json
212212
new nsWebpack.GenerateBundleStarterPlugin([

Diff for: templates/webpack.typescript.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ module.exports = env => {
214214
]),
215215
// Copy assets to out dir. Add your own globs as needed.
216216
new CopyWebpackPlugin([
217-
{ from: "fonts/**" },
218-
{ from: "**/*.jpg" },
219-
{ from: "**/*.png" },
217+
{ from: { glob: "fonts/**" } },
218+
{ from: { glob: "**/*.jpg" } },
219+
{ from: { glob: "**/*.png" } },
220220
], { ignore: [`${relative(appPath, appResourcesFullPath)}/**`] }),
221221
// Generate a bundle starter script and activate it in package.json
222222
new nsWebpack.GenerateBundleStarterPlugin([

Diff for: templates/webpack.vue.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,9 @@ module.exports = env => {
215215
}]),
216216
// Copy assets to out dir. Add your own globs as needed.
217217
new CopyWebpackPlugin([
218-
{ from: "fonts/**" },
219-
{ from: "**/*.+(jpg|png)" },
220-
{ from: "assets/**/*" },
218+
{ from: { glob: "fonts/**" } },
219+
{ from: { glob: "**/*.+(jpg|png)" } },
220+
{ from: { glob: "assets/**/*" } },
221221
], { ignore: [`${relative(appPath, appResourcesFullPath)}/**`] }),
222222
// Generate a bundle starter script and activate it in package.json
223223
new nsWebpack.GenerateBundleStarterPlugin([

0 commit comments

Comments
 (0)