From bf0f5f5bce2b28b965b2836fe01be3415e221fe6 Mon Sep 17 00:00:00 2001 From: panr Date: Mon, 28 Jan 2019 17:23:52 +0100 Subject: [PATCH] Fix Webpack config --- layouts/partials/footer.html | 3 ++- layouts/partials/inject.script.html | 5 ----- layouts/partials/inject.stylesheet.html | 3 --- source/html/inject.script.ejs | 3 --- source/html/inject.stylesheet.ejs | 3 --- webpack.config.js | 10 ---------- 6 files changed, 2 insertions(+), 25 deletions(-) delete mode 100644 layouts/partials/inject.script.html delete mode 100644 layouts/partials/inject.stylesheet.html delete mode 100644 source/html/inject.script.ejs delete mode 100644 source/html/inject.stylesheet.ejs diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 45764f7..6c62835 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -12,4 +12,5 @@ -{{ partial "inject.script.html" . }} + + diff --git a/layouts/partials/inject.script.html b/layouts/partials/inject.script.html deleted file mode 100644 index d9de605..0000000 --- a/layouts/partials/inject.script.html +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/layouts/partials/inject.stylesheet.html b/layouts/partials/inject.stylesheet.html deleted file mode 100644 index f91e097..0000000 --- a/layouts/partials/inject.stylesheet.html +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/source/html/inject.script.ejs b/source/html/inject.script.ejs deleted file mode 100644 index d9d1ee5..0000000 --- a/source/html/inject.script.ejs +++ /dev/null @@ -1,3 +0,0 @@ -<% htmlWebpackPlugin.files.js.filter(function(js){ return !/\.css$/.test(js) }).forEach(function(js){ %> - -<% }) %> diff --git a/source/html/inject.stylesheet.ejs b/source/html/inject.stylesheet.ejs deleted file mode 100644 index 6fbe8e0..0000000 --- a/source/html/inject.stylesheet.ejs +++ /dev/null @@ -1,3 +0,0 @@ -<% htmlWebpackPlugin.files.css.forEach(function(css){ %> - -<% }) %> diff --git a/webpack.config.js b/webpack.config.js index 8b4e8f7..0aaf5ff 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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]"), ], };