summaryrefslogtreecommitdiff
path: root/webpack.htmlexport.js
diff options
context:
space:
mode:
authorChristoph (Sheogorath) Kern2018-10-10 23:38:13 +0200
committerGitHub2018-10-10 23:38:13 +0200
commitbf525e43d4b1806b0a99f7c145a16087de7438fa (patch)
treebcb2a81120b3754e819db654ef7a5d7c7051d884 /webpack.htmlexport.js
parentc7478c1694be2b3b880b8d52f9c15d60832a06f8 (diff)
parent7eed584c0197d0b5a93f58f8b645c0b84588d8e1 (diff)
Merge pull request #1007 from davidmehren/webpack-4
Webpack 4 refactor & docs
Diffstat (limited to 'webpack.htmlexport.js')
-rw-r--r--webpack.htmlexport.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/webpack.htmlexport.js b/webpack.htmlexport.js
new file mode 100644
index 00000000..dd6f4c01
--- /dev/null
+++ b/webpack.htmlexport.js
@@ -0,0 +1,25 @@
+const MiniCssExtractPlugin = require('mini-css-extract-plugin')
+const path = require('path')
+
+module.exports = {
+ name: 'save-as-html',
+ entry: {
+ htmlExport: path.join(__dirname, 'public/js/htmlExport.js')
+ },
+ module: {
+ rules: [{
+ test: /\.css$/,
+ use: [MiniCssExtractPlugin.loader, 'css-loader']
+ }]
+ },
+ output: {
+ path: path.join(__dirname, 'public/build'),
+ publicPath: '/build/',
+ filename: '[name].js'
+ },
+ plugins: [
+ new MiniCssExtractPlugin({
+ filename: 'html.min.css'
+ })
+ ]
+}