Skip to content

Commit 006921a

Browse files
committed
A few additions for migration to webpack
* Fix issues on paths in build and dev files * Skip yarn to reduce tooling requirements * Minify CSS assets in production * Reduce imports on fonts, hardcode font pieces more. There are problems with the font family names. Roboto mixin brings in everything as `Roboto-Slab-Bold`, which won't match local font name of 'Roboto Slab' * Fix the development instance more: * Add file watching on reST files * Execute build docs command after webpack build Things I'm still not sure about: - [ ] The actual JS output, I haven't vetted this yet - [ ] If woff2 and woff are enough for fonts. The NPM packages are missing other formats
1 parent 0ab7645 commit 006921a

File tree

6 files changed

+91
-4838
lines changed

6 files changed

+91
-4838
lines changed

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
"version": "0.4.3",
55
"private": true,
66
"scripts": {
7-
"start": "yarn webpack-dev-server --open --config webpack.dev.js",
8-
"build": "yarn webpack --config webpack.prod.js"
7+
"start": "webpack-dev-server --open --config webpack.dev.js",
8+
"build": "webpack --config webpack.prod.js"
99
},
1010
"dependencies": {
1111
"bourbon": "~4.3",
1212
"bourbon-neat": "~1.7",
13-
"browserify": "^13.0.0",
1413
"css-loader": "^2.1.1",
1514
"file-loader": "^3.0.1",
1615
"font-awesome": "^4.7.0",
@@ -20,6 +19,7 @@
2019
"matchdep": "~1.0.1",
2120
"mini-css-extract-plugin": "^0.6.0",
2221
"node-sass": "^4.12.0",
22+
"optimize-css-assets-webpack-plugin": "^5.0.3",
2323
"roboto-fontface": "^0.10.0",
2424
"sass-loader": "^7.1.0",
2525
"style-loader": "^0.23.1",
@@ -29,6 +29,8 @@
2929
"wyrm": "^1.0.9"
3030
},
3131
"devDependencies": {
32-
"webpack-dev-server": "^3.3.1"
32+
"webpack-dev-server": "^3.3.1",
33+
"webpack-shell-plugin": "^0.5.0",
34+
"webpack-watch-files-plugin": "^1.0.3"
3335
}
3436
}

0 commit comments

Comments
 (0)