From 2b51a5e259df925321e53e058dbe0cdd06f0ee96 Mon Sep 17 00:00:00 2001 From: Igor Gassmann Date: Mon, 4 Dec 2017 17:14:17 -0300 Subject: [PATCH] Delete old webpack configuration files --- src/renderer/.babelrc | 6 ---- src/renderer/webpack.common.js | 55 ---------------------------------- src/renderer/webpack.dev.js | 28 ----------------- src/renderer/webpack.prod.js | 11 ------- 4 files changed, 100 deletions(-) delete mode 100644 src/renderer/.babelrc delete mode 100644 src/renderer/webpack.common.js delete mode 100644 src/renderer/webpack.dev.js delete mode 100644 src/renderer/webpack.prod.js diff --git a/src/renderer/.babelrc b/src/renderer/.babelrc deleted file mode 100644 index bd3150a2d..000000000 --- a/src/renderer/.babelrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "presets": [ - "es2015", - "react" - ], -} \ No newline at end of file diff --git a/src/renderer/webpack.common.js b/src/renderer/webpack.common.js deleted file mode 100644 index 0ba39f674..000000000 --- a/src/renderer/webpack.common.js +++ /dev/null @@ -1,55 +0,0 @@ -const path = require("path"); -const webpack = require("webpack") -const appPath = path.resolve(__dirname, "js"); - -process.traceDeprecation = true; - -const PATHS = { - app: path.join(__dirname, "src/main"), - dist: path.join(__dirname, "dist") -}; - -module.exports = { - entry: ["babel-polyfill", "./src/renderer/js/main.js"], - output: { - path: path.join(PATHS.dist, "js"), - publicPath: "/js/", - filename: "bundle.js" - }, - resolve: { - modules: [appPath, "node_modules"], - extensions: [".js", ".jsx", ".css"] - }, - module: { - rules: [ - { - test: /\.jsx?$/, - enforce: "pre", - loaders: ["eslint"], - // define an include so we check just the files we need - include: PATHS.app - }, - { - test: /\.node$/, - use: ["node-loader"] - }, - { - test: /\.css$/, - use: ["style-loader", "css-loader"] - }, - { - test: /\.jsx?$/, - exclude: /node_modules/, - use: { - loader: "babel-loader", - options: { - cacheDirectory: true, - presets: [ "es2015", "react", "stage-2" ] - } - } - } - ] - }, - target: "electron-main", -}; - diff --git a/src/renderer/webpack.dev.js b/src/renderer/webpack.dev.js deleted file mode 100644 index 877b10d51..000000000 --- a/src/renderer/webpack.dev.js +++ /dev/null @@ -1,28 +0,0 @@ -const path = require("path"); -const webpack = require("webpack") -const WebpackNotifierPlugin = require("webpack-notifier") -const merge = require('webpack-merge'); -const common = require('./webpack.common.js'); - - -const PATHS = { - dist: path.join(__dirname, "..", "main", "dist") -}; - -module.exports = merge(common, { - output: { - path: path.join(PATHS.dist, "js"), - pathinfo: true - }, - cache: true, - devtool: "eval", - plugins: [ - new WebpackNotifierPlugin(), - new webpack.DefinePlugin({ - ENV: JSON.stringify("development"), - }), - new webpack.LoaderOptionsPlugin({ - debug: true - }) - ] -}); \ No newline at end of file diff --git a/src/renderer/webpack.prod.js b/src/renderer/webpack.prod.js deleted file mode 100644 index 142f6bbfb..000000000 --- a/src/renderer/webpack.prod.js +++ /dev/null @@ -1,11 +0,0 @@ -const webpack = require("webpack") -const merge = require('webpack-merge'); -const common = require('./webpack.common.js'); - -module.exports = merge(common, { - plugins: [ - new webpack.DefinePlugin({ - ENV: JSON.stringify("production") - }) - ] -});