Skip to content

Instantly share code, notes, and snippets.

@pmallol
Created July 3, 2020 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmallol/4bc731804448d2db5ce3b1f0c5fbad38 to your computer and use it in GitHub Desktop.
Save pmallol/4bc731804448d2db5ce3b1f0c5fbad38 to your computer and use it in GitHub Desktop.
Add Webpack as external pipeline to Middleman
# Webpack
activate :external_pipeline,
name: :webpack,
command: build? ?
"./node_modules/webpack/bin/webpack.js --bail -p" :
"./node_modules/webpack/bin/webpack.js --watch -d --progress --color",
source: ".tmp/dist",
latency: 1
# Dev environment
configure :development do
config[:css_dir] = ".tmp/dist"
config[:js_dir] = ".tmp/dist"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment