diff --git a/config/vinlottis.config.js b/config/vinlottis.config.js deleted file mode 100644 index 2af4fa9..0000000 --- a/config/vinlottis.config.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; - -const HtmlWebpackPlugin = require("html-webpack-plugin"); -const helpers = require("./helpers"); - -const VinlottisConfig = { - entry: { - vinlottis: helpers.root("src", "vinlottis-init") - }, - optimization: { - minimizer: [ - new HtmlWebpackPlugin({ - chunks: ["vinlottis"], - filename: "index.html", - template: "./src/templates/Index.html", - inject: true, - minify: { - removeComments: true, - collapseWhitespace: false, - preserveLineBreaks: true, - removeAttributeQuotes: true - } - }) - ] - } -}; - -module.exports = VinlottisConfig; diff --git a/config/webpack.config.common.js b/config/webpack.config.common.js index ba768da..6c89940 100644 --- a/config/webpack.config.common.js +++ b/config/webpack.config.common.js @@ -15,7 +15,10 @@ const webpackConfig = function(isDev) { "@": helpers.root("src") } }, - externals: { + entry: { + vinlottis: helpers.root("src", "vinlottis-init") + }, + externals: { moment: 'moment' // comes with chart.js }, module: { diff --git a/config/webpack.config.dev.js b/config/webpack.config.dev.js index 9a03f4d..7f2ca10 100644 --- a/config/webpack.config.dev.js +++ b/config/webpack.config.dev.js @@ -40,9 +40,6 @@ let webpackConfig = merge(commonConfig(true), { }); webpackConfig = merge(webpackConfig, { - entry: { - main: helpers.root("src", "vinlottis-init") - }, plugins: [ new HtmlPlugin({ template: "src/templates/Index.html" diff --git a/webpack.config.js b/webpack.config.js index 7753198..e0c213c 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -7,8 +7,6 @@ if (environment === "development") { module.exports = require("./config/webpack.config.dev"); } else { let prodConfig = require("./config/webpack.config.prod"); - - prodConfig = merge(prodConfig, require("./config/vinlottis.config.js")); let serviceWorkerConfig = require("./config/service-worker.config.js"); module.exports = [prodConfig, serviceWorkerConfig];