Skip to content

Commit

Permalink
Merge pull request #1 from whimsicaldreamer/next
Browse files Browse the repository at this point in the history
Tiny fixes
  • Loading branch information
whimsicaldreamer committed Aug 17, 2018
2 parents 8fd40b6 + 36d8baa commit de6a4da
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 4 deletions.
39 changes: 38 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Html5-template",
"version": "1.0.0",
"version": "1.1.0",
"description": "Basic HTML5 starter template with webpack",
"main": "app.js",
"scripts": {
Expand Down Expand Up @@ -41,6 +41,10 @@
"webpack-dev-server": "^3.1.4"
},
"dependencies": {
"@fortawesome/fontawesome": "^1.1.8",
"@fortawesome/fontawesome-free-brands": "^5.0.13",
"@fortawesome/fontawesome-free-regular": "^5.0.13",
"@fortawesome/fontawesome-free-solid": "^5.0.13",
"jquery": "^3.3.1",
"modernizr": "^3.6.0",
"normalize.css": "^8.0.0"
Expand Down
2 changes: 0 additions & 2 deletions src/js/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
console.log("This is the index page");

const $ = require("jquery");
6 changes: 6 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const devMode = ((process.env.NODE_ENV).trim() === "development");

const path = require("path");
const glob = require("glob-all");
const webpack = require("webpack");

const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const PurifyCSSPlugin = require("purifycss-webpack");
Expand Down Expand Up @@ -123,6 +124,11 @@ module.exports = {
template: "src/index.html",
chunks: [ "vendor", "index"]
}),
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery",
fontawesome: "@fortawesome/fontawesome"
}),
new CleanWebpackPlugin(["dist"])
].concat(
devMode ? [
Expand Down

0 comments on commit de6a4da

Please sign in to comment.