replaced Grunt with Webpack as front-end build tool

This commit is contained in:
alecmerdler 2017-05-21 02:10:11 -07:00
parent 36ddba24ad
commit 2e133d2b9c
16 changed files with 222 additions and 481 deletions

View file

@ -97,7 +97,7 @@ RUN yarn install --ignore-engines
ADD static static
# Run Webpack
RUN node_modules/.bin/webpack --progress
RUN yarn build
# Run front-end tests
ARG RUN_TESTS=true
@ -108,14 +108,6 @@ RUN if [ "$RUN_TESTS" = true ]; then \
yarn test; \
fi
# Install Grunt and Grunt depenencies
RUN yarn global add grunt-cli
ADD grunt grunt
RUN cd grunt && yarn install
# Run Grunt
RUN cd grunt && grunt
# Optimize our images
ADD static/img static/img
RUN jpegoptim static/img/**/*.jpg