No commit activity in last 3 years
No release in over 3 years
Enable webpack for your middleman project eaiser
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Middleman Webpacked

Usage

Add this line to your Gemfile

gem 'middleman-webpacked', '~> 0.1.0'

Setup your Webpack

middleman webpack

To enable React.js, add --react options when setup Webpack To enable Vue.js, add --vue options when setup Webpack

Add javascript_pack_tag to your layout

<%= javascript_pack_tag 'bundle' %>

Activate the extension in config.rb

activate :webpack

Put the javascript into src directory

This version only support Webpack 4 default config

Options

Entry

If you want to output more than one file (bundle.js) you can specify the entry options.

activate :webpack,
         entry: {
           app: 'index.js',
           ext: 'ext.js'
         }

Roadmap

  • Running Webpack without config
  • Automatic setup webpack.config.js
  • Babel Support
  • React.js Support
    • Can be enabled
    • Support to generate css file
  • Vue.js Support
    • Can be enabled
    • Support template and .vue file
    • Support to generate css file
  • Sass Support