Created
July 3, 2020 22:09
-
-
Save pmallol/4bc731804448d2db5ce3b1f0c5fbad38 to your computer and use it in GitHub Desktop.
Add Webpack as external pipeline to Middleman
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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