Last active
July 31, 2017 21:18
-
-
Save arikanmstf/5c34206278341294da5d8b9e3405dbdc to your computer and use it in GitHub Desktop.
Dynamic Html Bootstrap - Webpack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | |
<link rel="stylesheet" href="<%= htmlWebpackPlugin.options.extraFiles.css %>"> | |
<title>My Library</title> | |
</head> | |
<body> | |
<div class="main-content"></div> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ... */ | |
const HtmlWebpack = | |
new HtmlWebpackPlugin({ | |
template: 'src/index.ejs', | |
inject: 'body', | |
hash: true, | |
filename: `index.html`, | |
description: DESCRIPTION, | |
extraFiles: { | |
css: config.homeUrl + 'static/css/bootstrap.min.css' | |
} | |
}); | |
/* ... */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment