Fix copy on build
This commit is contained in:
parent
7b1d517659
commit
3121e13628
1 changed files with 15 additions and 10 deletions
|
@ -29,18 +29,23 @@ module.exports = {
|
||||||
publicPath: './'
|
publicPath: './'
|
||||||
}),
|
}),
|
||||||
new LicensePlugin(),
|
new LicensePlugin(),
|
||||||
new CopyWebpackPlugin(
|
new CopyWebpackPlugin([
|
||||||
[
|
|
||||||
'src/icon/*.png',
|
|
||||||
'src/icon/safari-pinned-tab.svg',
|
|
||||||
'src/icon/favicon.ico',
|
|
||||||
'src/icon/site.webmanifest',
|
|
||||||
'src/icon/browserconfig.xml'
|
|
||||||
],
|
|
||||||
{
|
{
|
||||||
to: 'icons'
|
from: 'src/icon/*.png', to: 'icons', flatten: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
from: 'src/icon/safari-pinned-tab.svg', to: 'icons'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
from: 'src/icon/favicon.ice', to: 'icons'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
from: 'src/icon/site.webmanifest', to: 'icons'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
from: 'src/icon/browserconfig.xml', to: 'icons'
|
||||||
}
|
}
|
||||||
)
|
])
|
||||||
],
|
],
|
||||||
output: {
|
output: {
|
||||||
filename: 'index.js',
|
filename: 'index.js',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue