This box is our most bare official implementation with Webpack.
Includes contracts, migrations, tests, user interface, and webpack build pipeline.
First ensure you are in a new and empty directory.
unbox command via npx and skip to step 3.
npx truffle unbox webpack
unbox command.
npm install -g truffle
truffle unbox webpack
truffle develop
truffle.
compile
migrate
app directory, we build and run our frontend. Smart contract changes must be manually recompiled and migrated.
// in another terminal (i.e. not in the truffle develop prompt)
cd app
npm run dev
// inside the development console.
test
// outside the development console..
truffle test
app folder. A production build will be in the app/dist folder.
// ensure you are inside the client directory when running this
npm run build