Skip to content

Middleman and Webpack external pipeline

Notifications You must be signed in to change notification settings

adamgavlak/middlepack

Repository files navigation

Middlepack

Middlepack is a combination of Middleman and Webpack, which is used as an external pipeline. It is also set up to use Tailwind as a CSS framework with PostCSS.

Requirements

  • Ruby 2.6.2+
  • Node 10.0.0+

Installation

Clone this repository

$ git clone https://github.com/gavlak/middlepack <project_name>
$ cd <project_name>

You need to remove .git directory and initialize your own:

$ rm -r .git
$ git init

Now we need to install Ruby Gems and NPM packages:

$ bundle install
...

$ yarn install

After the installation of the packages and gems is successful you can start using Middlepack.

Usage

Usage is the same as with regular Middleman. To start a development server you need to run:

bundle exec middleman server

To build a production version of the site you can run:

bundle exec middleman build