Webpack for Beginners Series
Learn how to use Webpack to bundle your code, manage your assets, automate easy processes and opti...
For further actions, you may consider blocking this person and/or reporting abuse
For displaying directory structures, check out
tree
:If you're on a mac,
brew install tree
Okay, where can I get tree from??
If you're on a mac:
brew install tree
Hopefully this is the last packaging tool and we all start using this one. Who remembers bower? :D
I was just checking your process and one of your initial command doesn't seems to be working
npx webpack ./index.js -o ./
it's throwing unknown command error
npx webpack --entry ./index.js -o ./
should workMakes sure you install webpack first.. It could be as a result of webpack not being installed on your machine. Otherwise use the confirmation file.
I've installed the webpack, my issue seems to be different. Webpack-cli is not detecting webpack as a command. Can you help me with this?
Check this screenshot here dev-to-uploads.s3.amazonaws.com/i/...
okay, try installing webpack and the webpack-cli globally, that should do the trick
How does loading a single javascript file decreases load time? I assume a single javascript file would increase load time as the file will be bigger?
I'm confused...
I was just about to dive into webpack. This helped. Thanks for sharing!
I'm glad that you found it useful, you're welcome