Commit Graph

189 Commits

Author SHA1 Message Date
Stefan Lindberg
790c3d9bcb Add environment variable check for DEVURL 2017-02-27 18:20:27 +01:00
QWp6t
bdad1fe3b1 Use copy-globs-webpack-plugin (#1824) 2017-02-07 14:45:18 -08:00
Ben Word
7cd63be1bc Fix BS4 image caption padding 2017-01-23 18:03:58 -07:00
QWp6t
de3bce92a9 Add support for HTML injection (#1817) 2017-01-21 16:34:45 -08:00
QWp6t
4adbc347c2 Fix browsersync (#1815)
* Update dependencies
* Remove monkey-hot-loader
* Use webpack-merge instead of util/mergeWithConcat()
* Fix: copyglobs plugin `after-emit` is bound twice
* NoErrorsPlugin() is deprecated in favor of NoEmitOnErrorsPlugin()
* webpack-dev-middleware should use same publicPath as compiler
* webpack-hot-middleware/client should be prepended to entries
* Browser should refresh when HMR fails
* Bootstrap package.json has correct main property
Sometime between alpha 2 and 3, package.json was pointing to nonexistent
file, so we referenced file manually in our repo. Underlying issue was
fixed by alpha 4, so we no longer have to specify full path to file.
2017-01-18 23:58:37 -08:00
Ben Word
70328d9ae0 Missed in #1809 2017-01-14 20:16:27 -07:00
Ben Word
865ade536b Remove Font Awesome 2017-01-13 11:57:33 -07:00
Ben Word
646c6365ac Remove grid defaults 2017-01-13 11:27:16 -07:00
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
d9542131f5 Merge pull request #1798 from oxyc/patch-1
Allow browser versions to be configured in config.json
2017-01-11 16:02:42 -07:00
Ben Word
417ce46654 Fix for publicPath 2017-01-11 12:50:38 -07:00
Oskar Schöldström
f4cf20b94f Respect autoprefixer browsers when stripping vendor prefixes with cssnano 2017-01-10 15:08:54 -05:00
Oskar Schöldström
6b37080b13 Allow autoprefixer's browser versions to be configured 2017-01-10 13:03:43 -05:00
Scott Walkinshaw
23d283c7bf Use stock eslint 2017-01-09 20:19:51 -05:00
QWp6t
bdaf038248 Give devs more options for dynamically setting publicPath 2017-01-09 16:22:23 -08:00
QWp6t
d06e72e20c Follow standard naming conventions for classes/non-classes in assets/scripts 2017-01-09 14:15:39 -08:00
QWp6t
f12654f83f images should be recompiled on compiler done event 2017-01-09 13:49:38 -08:00
QWp6t
ce6024cde4 publicPath is ../ for styles, and optionally uses envar for everything else 2017-01-09 13:32:38 -08:00
QWp6t
bfb3ef7873 Update airbnb 14.0.0 2017-01-09 13:16:58 -08:00
QWp6t
71791d836c Update webpack 2.2.0-rc.3 2017-01-09 13:09:34 -08:00
Ben Word
6f6ac94cca Update to Bootstrap 4 Alpha 6 2017-01-08 08:45:39 -07:00
QWp6t
24cc3b5a42 Use browsersync-webpack-plugin 2017-01-03 08:40:55 -08:00
Joshua Geschwendt
8388805ba9 Fix to load optimization config (#1762)
closes #1761
2016-12-01 09:08:09 -08:00
QWp6t
e6e60aa8c1 Use new webpack api schema 2016-11-15 02:46:09 -08:00
QWp6t
70ebba7d80 Update dependencies 2016-11-15 00:34:42 -08:00
Ben Word
8ac5f153b8 Variables organization 2016-11-14 23:17:55 -07:00
QWp6t
e7fccbe0bf Use $.fn.ready() (reverts 724d550) 2016-11-07 01:51:18 -08:00
QWp6t
8c9ba0546b Reorganize and refactor build routine 2016-11-06 22:31:49 -08:00
QWp6t
c1bb2b3a27 Switch assets manifest plugin 2016-11-06 20:32:47 -08:00
QWp6t
c49793cd3d Add images to assets manifest 2016-11-06 19:40:13 -08:00
QWp6t
0d38ab8391 Switch from babel to buble 2016-11-03 09:05:07 -07:00
QWp6t
eae52fd7ea Update dependencies & webpack compatibility (BREAKING CHANGES) 2016-11-03 08:38:22 -07:00
QWp6t
e6f2f494b0 Use http by default (not https) to be consistent with Trellis 2016-11-03 08:35:44 -07:00
Allan Chau
e4d8be1642 Add support for .ico files (#1740) 2016-11-03 01:53:21 -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
Patrick Vézina
b5a321fb45 Fix duplicate value of watch option Array (#1733) 2016-10-05 16:51:10 -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
b79f389170 Comply with new eslint rules 2016-09-11 18:48:34 -07:00
QWp6t
c96905b075 Use closure instead of doneCompiling() method. Fixes #1717 2016-09-11 18:47:46 -07:00
QWp6t
10899cf2cd Fix webpack HMR 2016-09-11 11:39:48 -07:00
QWp6t
724d550739 Use native DOMContentLoaded event 2016-09-11 11:17:03 -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
Darren Jacoby
546f54c97a Update _grid.scss to use @include make-col-ready() mixin 2016-09-02 09:07:55 +02:00
Patrick Vézina
7623ad0511 Set dynamically aboslute public path on 'npm run watch'; fix http/htt… (#1696)
* Set dynamically aboslute public path on 'npm run watch'; fix http/https hardcoded in watch.js

* WEBPACK_PUBLIC_PATH fix
2016-08-26 11:45:50 -06:00
Patrick Vézina
97c1a307ec move assets found in node_modules/ to dist/vendor; simpler assets/config.json (#1697) 2016-08-26 11:34:52 -06:00
QWp6t
4d58f88166 Squashing asset pipeline bugs and other stuff
1. Update dependencies
   - Add font-awesome as dependency
   - Switch to Bootstrap 4 dev branch
   - Remove eslint airbnb style (we're not using it)

2. Imported images and fonts should go into dist/images
   and dist/fonts, respectively

3. Only lint our own code, not external code (fixes #1633)
2016-08-13 07:49:43 -07:00
QWp6t
447c24d082 Update dependencies, incl Bootstrap 4 alpha 3 2016-08-06 18:51:06 -07:00
Ben Word
91363795e8 Update comment for importing deps 2016-07-16 13:59:45 -06:00