1
0
Fork 0

feat(cfp): Updated for React 17 / CRA 4 / Webpack 5

This commit is contained in:
Joost De Cock 2021-05-22 17:58:52 +02:00
parent e3358a03ef
commit 380fa33c6a
7 changed files with 34 additions and 19 deletions
packages/create-freesewing-pattern/lib

View file

@ -59,6 +59,16 @@ module.exports = async (info) => {
await promise
}
// Symlink is required since webback 5 / CRA 4
fs.symlinkSync(
path.join(dest),
path.join(dest, 'example', 'src', 'pattern'),
'junction',
(err) => {
if (err) console.log('Unable to create symlink to pattern folder:', err)
}
)
return dest
}