diff --git a/index.html b/index.html
new file mode 100644
index 0000000..74bab21
--- /dev/null
+++ b/index.html
@@ -0,0 +1,15 @@
+
+
+
+
+
Ullamco Laboris
+
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
Page 2
+
+
+
\ No newline at end of file
diff --git a/package.json b/package.json
index f549b02..656d709 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,15 @@
"version": "1.0.0",
"description": "Boilerplate for building a static app/website with ES6 and SASS",
"license": "MIT",
- "keywords": ["build", "boilerplate", "sass", "es6", "es2015", "static", "transpilaton"],
+ "keywords": [
+ "build",
+ "boilerplate",
+ "sass",
+ "es6",
+ "es2015",
+ "static",
+ "transpilaton"
+ ],
"author": {
"name": "Michael Dziedzic",
"url": "michaeldziedzic.com"
@@ -22,6 +30,7 @@
"babel-preset-es2015": "^6.14.0",
"css-loader": "^0.25.0",
"extract-text-webpack-plugin": "^1.0.1",
+ "file-loader": "^0.9.0",
"fs": "0.0.1-security",
"glob": "^7.0.6",
"gulp": "^3.9.1",
@@ -31,6 +40,8 @@
"node-sass": "^3.9.0",
"postcss-loader": "^0.13.0",
"sass-loader": "^4.0.1",
+ "style-loader": "^0.13.1",
+ "url-loader": "^0.5.7",
"webpack": "^1.13.2",
"webpack-dev-server": "^1.15.1",
"yargs": "^5.0.0"
diff --git a/page2.html b/page2.html
new file mode 100644
index 0000000..c00584c
--- /dev/null
+++ b/page2.html
@@ -0,0 +1,16 @@
+
+
+
+
Page 3
-
Index
+
Index (Page 1)
jpg
jpeg
png
diff --git a/source/style/fonts/Lato-Light.ttf b/source/style/fonts/Lato-Light.ttf
new file mode 100755
index 0000000..a958067
Binary files /dev/null and b/source/style/fonts/Lato-Light.ttf differ
diff --git a/source/style/fonts/Lato-Regular.ttf b/source/style/fonts/Lato-Regular.ttf
new file mode 100755
index 0000000..04ea8ef
Binary files /dev/null and b/source/style/fonts/Lato-Regular.ttf differ
diff --git a/source/style/style.scss b/source/style/style.scss
index c84a663..54232f1 100644
--- a/source/style/style.scss
+++ b/source/style/style.scss
@@ -3,7 +3,14 @@ $green: #090;
$blue: #00f;
$radius: 30px;
+@font-face {
+ font-family: 'Lato';
+ src: url('./fonts/Lato-Regular.ttf');
+}
+
p {
+ font-family: Lato, sans-serif;
+ font-size: 14px;
line-height: 1.75em;
}
diff --git a/webpack.config.js b/webpack.config.js
index cc2c10f..aa43e83 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -3,7 +3,7 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin');
const processHTMLPages = require('./processHTMLHelper.js');
const autoprefixer = require('autoprefixer');
-const extractCSS = new ExtractTextPlugin('./style/style.css');
+const extractCSS = new ExtractTextPlugin('style.css');
const plugins = [
extractCSS,
].concat(processHTMLPages());
@@ -22,7 +22,19 @@ module.exports = {
},
{
test: [/\.scss$/i, /\.css$/],
- loader: extractCSS.extract(['css?-minimize', 'postcss', 'sass']),
+ loader: extractCSS.extract('style-loader', 'css?-minimize!postcss!sass'),
+ },
+ {
+ test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
+ loader: 'url-loader?limit=10000&mimetype=application/font-woff',
+ },
+ {
+ test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
+ loader: 'file-loader',
+ query: {
+ name: '[path][name].[ext]',
+ context: './source',
+ },
},
],
},
@@ -31,11 +43,11 @@ module.exports = {
extensions: ['', '.js', '.es6'],
},
output: {
- path: `${__dirname}/build`,
+ path: './build',
filename: 'index.js',
},
devServer: {
- contentBase: `${__dirname}/source`,
+ contentBase: './source',
},
plugins,
};