truffle-config.js
:solc
version 0.5.2
as the contract compiler and we set the contract build directory to ./src/contract_build
because the default build directory is ./build
which conflicts with react application build folder. Another reason is later on we'll use react to load the Counter.json
from the build directory which must be located inside the src
directory.truffle compile