I've only recently started using WebPack. (with Typescript, which I've been using for a long time, and Preact since recently.)
I'm really happy wi...
For further actions, you may consider blocking this person and/or reporting abuse
👋 @thelarkinn
@mindplay , the reason you need to cd into your
styleguide
folder is becausestyleguide
has yourtsconfig.json
andwebpack.config.js
in there. If you don't want thestyleguide
to be the root, simply move yourtsconfig.json
andwebpack.config.js
to yourroot
folder. If for some reason you can't change that, simply call webpack with an explicit configuration file and point it to./styleguide/webpack.config.js
, e.g.I have a typescript preact boilerplate if you want to take a peek.
Hit me up if you're still stuck.
I completely missed it, but here it is - it's called
context
... I must have look for this 20 times, and was expecting something like "rootDir", but - there it is :-)webpack.js.org/configuration/context