mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-11-14 12:25:07 +01:00
Fix Webpack config
This commit is contained in:
parent
6be1e1f8b1
commit
bf0f5f5bce
@ -12,4 +12,5 @@
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
{{ partial "inject.script.html" . }}
|
||||
<script src="/assets/main.js"></script>
|
||||
<script src="/assets/prism.js"></script>
|
||||
|
@ -1,5 +0,0 @@
|
||||
|
||||
<script src="/assets/main.js"></script>
|
||||
|
||||
<script src="/assets/prism.js"></script>
|
||||
|
@ -1,3 +0,0 @@
|
||||
|
||||
<link rel="stylesheet" href="/assets/style.css">
|
||||
|
@ -1,3 +0,0 @@
|
||||
<% htmlWebpackPlugin.files.js.filter(function(js){ return !/\.css$/.test(js) }).forEach(function(js){ %>
|
||||
<script src="/assets/<%= js %>"></script>
|
||||
<% }) %>
|
@ -1,3 +0,0 @@
|
||||
<% htmlWebpackPlugin.files.css.forEach(function(css){ %>
|
||||
<link rel="stylesheet" href="/assets/<%= css %>">
|
||||
<% }) %>
|
@ -93,16 +93,6 @@ module.exports = {
|
||||
},
|
||||
plugins: [
|
||||
new CleanPlugin(join("static/assets")),
|
||||
new HtmlWebpackPlugin({
|
||||
template: join("source", "html", "inject.script.ejs"),
|
||||
filename: join("layouts", "partials", "inject.script.html"),
|
||||
inject: false,
|
||||
}),
|
||||
new HtmlWebpackPlugin({
|
||||
template: join("source", "html", "inject.stylesheet.ejs"),
|
||||
filename: join("layouts", "partials", "inject.stylesheet.html"),
|
||||
inject: false,
|
||||
}),
|
||||
new ExtractTextPlugin("[name]"),
|
||||
],
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user