21 lines
444 B
JavaScript
21 lines
444 B
JavaScript
|
const path = require('path')
|
||
|
const CopyPlugin = require('copy-webpack-plugin')
|
||
|
module.exports = {
|
||
|
webpack: (config) => {
|
||
|
config.plugins.push(
|
||
|
new CopyPlugin({
|
||
|
patterns: [
|
||
|
{
|
||
|
from: path.join(
|
||
|
__dirname,
|
||
|
'node_modules/ionicons/dist/ionicons/svg'
|
||
|
),
|
||
|
to: path.join(__dirname, 'public/svg'),
|
||
|
},
|
||
|
],
|
||
|
})
|
||
|
)
|
||
|
return config
|
||
|
},
|
||
|
}
|