aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorCristiano Almeida <[email protected]>2018-10-14 10:44:38 +0100
committerGitHub <[email protected]>2018-10-14 10:44:38 +0100
commit672971c9393925a62193b51dab14b8120d2488a1 (patch)
treed6ac42ff1dc75cb376a809cf46b40d0ed8e03fac /webpack.config.js
parent2dd82ebe8abd6d61c70be0feb14ebe6fe45c858a (diff)
parent4d432861ab4cabb44cce513df1e4a46cb23f0e9e (diff)
downloadprotonmail-themes-3.14.19.tar.xz
protonmail-themes-3.14.19.zip
Merge pull request #14 from csalmeida/gulpv3.14.19
Replaced Webpack with Gulp. Theme updates.
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js37
1 files changed, 0 insertions, 37 deletions
diff --git a/webpack.config.js b/webpack.config.js
deleted file mode 100644
index 4a8a19e..0000000
--- a/webpack.config.js
+++ /dev/null
@@ -1,37 +0,0 @@
-require('dotenv').config()
-const path = require('path');
-const fs = require('fs');
-const MiniCssExtractPlugin = require("mini-css-extract-plugin");
-
-const setEntryPoints = (themes = {}) => {
- fs.readdirSync(path.join(__dirname, process.env.TEMPLATE_PATH)).forEach(file => {
- themes[file.slice(0, -5)] = path.join(__dirname, process.env.TEMPLATE_PATH, file)
- })
- return themes
-}
-
-const themes = setEntryPoints();
-
-module.exports = {
- mode: process.env.MODE,
- entry: themes,
- output: {
- filename: '[name].js',
- path: path.join(__dirname, 'themes')
- },
- module: {
- // Add loader
- rules: [{
- test: /\.(scss)$/,
- use: [
- MiniCssExtractPlugin.loader,
- 'css-loader', 'sass-loader'
- ]
- }]
- },
- plugins: [
- new MiniCssExtractPlugin({
- filename: "[name].css",
- })
- ],
-};