README.md in jekyll-webpack-0.2.1 vs README.md in jekyll-webpack-0.2.2
- old
+ new
@@ -30,22 +30,29 @@
```yml
plugins:
- jekyll/webpack
```
-Now install webpack, I use `yarn`
+NOTE the `/` - the `-` variant is not available yet.
-`yarn add webpack webpack-cli --dev`
+ALSO NOTE - it's probably advisable to place this plugin as the very last one in the build pipe. EG:-
-And the basic JS entrypoint `mkdir src && touch src/index.js`
+```yml
+plugins:
+ - jekyll-otherplug
+ ...
+ - jekyll/webpack
+```
-And you're away!
-
## Usage
In your root Jekyll project folder you need to have Webpack installed, so:-
`yarn add webpack webpack-cli --dev`
+
+And the basic JS entrypoint `mkdir src && touch src/index.js`
+
+And you're away! Just run the `jekyll serve` or `jekyll build` commands with whatever env you need.
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then `cd spec/fixtures && yarn` to install required JS dependencies for specs. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.