748bcb996d
* docs: add example of Ionic with TypeScript * docs: fix example code typo * fix: support ionicons * docs: fix example code by ESLint and prettier * docs: example remove invalid config * Renamed example to with-ionic-typescript * Updated .gitignore * Updated readme * Updated package.json Co-authored-by: Hidetaka Okamoto <info@wp-kyoto.net> Co-authored-by: Luis Alvarez <luis@vercel.com>
20 lines
444 B
JavaScript
20 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
|
|
},
|
|
}
|