rsnext/examples/with-ionic-typescript/next.config.js
Hidetaka Okamoto 748bcb996d
docs: add example of Ionic with TypeScript (#18532)
* 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>
2020-12-11 12:17:39 -05:00

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
},
}