feat(cfp): Updated for React 17 / CRA 4 / Webpack 5
This commit is contained in:
parent
e3358a03ef
commit
380fa33c6a
7 changed files with 34 additions and 19 deletions
packages/create-freesewing-pattern/lib
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue