Skip to content

Commit

Permalink
Merge pull request #3 from BaggersIO/patch-1
Browse files Browse the repository at this point in the history
Fixed docs for #1
  • Loading branch information
tjwebb committed Apr 21, 2016
2 parents 195f404 + 0b85fcd commit 403a984
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Below is an example of using webpack to compile a [React.js](https://facebook.gi
// config/webpack.js

var webpack = require('webpack');
var path = require('path');

// compile js assets into a single bundle file
module.exports.webpack = {
Expand All @@ -53,7 +54,7 @@ module.exports.webpack = {
'./assets/js',
],
output: {
path: path.resolve(__dirname, '.tmp/public/js'),
path: path.resolve(__dirname, '../.tmp/public/js'),
filename: 'bundle.js'
},
plugins: [
Expand All @@ -76,7 +77,14 @@ module.exports.webpack = {
};
```

## 3. Lift!
## 3. Update your Layout

```html
<!-- views/layout.ejs -->
<script src="/js/bundle.js"></script>
```

## 4. Lift!

```sh
$ sails lift
Expand Down

0 comments on commit 403a984

Please sign in to comment.