Fix Webpack config

This commit is contained in:
panr 2019-01-28 17:23:52 +01:00
parent 6be1e1f8b1
commit bf0f5f5bce
6 changed files with 2 additions and 25 deletions

View File

@ -12,4 +12,5 @@
</div>
</footer>
{{ partial "inject.script.html" . }}
<script src="/assets/main.js"></script>
<script src="/assets/prism.js"></script>

View File

@ -1,5 +0,0 @@
<script src="/assets/main.js"></script>
<script src="/assets/prism.js"></script>

View File

@ -1,3 +0,0 @@
<link rel="stylesheet" href="/assets/style.css">

View File

@ -1,3 +0,0 @@
<% htmlWebpackPlugin.files.js.filter(function(js){ return !/\.css$/.test(js) }).forEach(function(js){ %>
<script src="/assets/<%= js %>"></script>
<% }) %>

View File

@ -1,3 +0,0 @@
<% htmlWebpackPlugin.files.css.forEach(function(css){ %>
<link rel="stylesheet" href="/assets/<%= css %>">
<% }) %>

View File

@ -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]"),
],
};