Copy .env.js
as env.js
to your project and set your local theme paths
Run the container:
docker run --rm pronovix/gulp -v $PWD:/build/app npm run gulp
services:
gulp:
image: pronovix/gulp
volumes:
- .:/build/app:delegated
Then run the container: docker-compose run --rm gulp sh -c 'npm run gulp'
.
If you want to have non-minified CSS with sourcemaps, run
npm run gulp -- --debug
or npm run gulp watch -- --debug
.
- You get
No env file detected.
error when runningnpm run gulp
: You have copied yourenv.js
file to a wrong folder. It should be located next to yourdocker-compose.yml
file. npm run gulp
runs with no issues, but you still don't have the compiled CSS: Make sure to give the correct path to your theme, the path should start withapp/...
.