Commit Graph

12 Commits

Author SHA1 Message Date
Ben Word
8bd55bba58 Revert to yarn.lock from master, previous Webpack RC 2017-01-11 16:50:44 -07:00
Ben Word
1279552a6a Use NoEmitOnErrorsPlugin, thanks @eshimischi 2017-01-11 16:08:54 -07:00
Ben Word
417ce46654 Fix for publicPath 2017-01-11 12:50:38 -07:00
QWp6t
bdaf038248 Give devs more options for dynamically setting publicPath 2017-01-09 16:22:23 -08:00
QWp6t
24cc3b5a42 Use browsersync-webpack-plugin 2017-01-03 08:40:55 -08:00
QWp6t
8c9ba0546b Reorganize and refactor build routine 2016-11-06 22:31:49 -08:00
QWp6t
eae52fd7ea Update dependencies & webpack compatibility (BREAKING CHANGES) 2016-11-03 08:38:22 -07:00
Patrick Vézina
09497e7df9 Fix browserSyncOptions in config.js not being passed to BrowserSync (#1732)
See: https://discourse.roots.io/t/sage-9-configure-browsersync/7808
2016-10-05 17:01:09 -07:00
QWp6t
953a8ab5d6 Define WEBPACK_PUBLIC_PATH in webpack.config.js
Move WEBPACK_PUBLIC_PATH back to webpack.config.js

- Reverses a change made in 10899cf
- Closes #1718
2016-09-12 23:47:11 -07:00
QWp6t
10899cf2cd Fix webpack HMR 2016-09-11 11:39:48 -07:00
QWp6t
697751009b Remove redundant eslint rule exception 2016-09-09 04:31:19 -07:00
QWp6t
f6bdc7b48c Refactor build routine and switch to airbnb style (#1703)
- Relocate webpack stuff to assets/build
- Switch all js to airbnb code style
- Update webpack to v2.0 (beta)
- Update all other dependencies
- Assets manifest uses relative path as key [1]
- Code should be compatible with Node 4.5.0
- All dependencies have been updated

[1]: Previously the assets manifest would use the basename of a file path as
its key when looking up a cachebusted file. This was to be consistent with
Sage 8. This change makes it so that the relative path is used instead.

To clarify, review the following example.

Before:
```
{
  "main.js": "scripts/main_5f4bfc9a9f82291c6dea.js",
  "main.css": "styles/main_5f4bfc9a9f82291c6dea.css",
  "customizer.js": "scripts/customizer_5f4bfc9a9f82291c6dea.js"
}
```

After:
```
{
  "scripts/main.js":"scripts/main_5f4bfc9a9f82291c6dea.js",
  "styles/main.css":"styles/main_5f4bfc9a9f82291c6dea.css",
  "scripts/customizer.js":"scripts/customizer_5f4bfc9a9f82291c6dea.js"
}
```
2016-09-04 19:13:16 -07:00