aboutsummaryrefslogtreecommitdiff
path: root/test/application/webpack.config.js
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2019-08-20 13:51:06 +0300
committerValentin Popov <info@valentineus.link>2019-08-20 13:51:06 +0300
commit9c57d101f0181aa134190edb0b2e7aabdba1151f (patch)
tree41e2405204d001490ba76e272bc5d11020a2c357 /test/application/webpack.config.js
parentb3461bdcc0462bda7fad46b02f8307a0bc1166cd (diff)
downloadelectron-hot-reload-9c57d101f0181aa134190edb0b2e7aabdba1151f.tar.xz
electron-hot-reload-9c57d101f0181aa134190edb0b2e7aabdba1151f.zip
Added example application
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'test/application/webpack.config.js')
-rw-r--r--test/application/webpack.config.js69
1 files changed, 0 insertions, 69 deletions
diff --git a/test/application/webpack.config.js b/test/application/webpack.config.js
deleted file mode 100644
index 6203400..0000000
--- a/test/application/webpack.config.js
+++ /dev/null
@@ -1,69 +0,0 @@
-const { CleanWebpackPlugin } = require('clean-webpack-plugin')
-const HtmlWebpackPlugin = require('html-webpack-plugin')
-
-const path = require('path')
-
-const mainConfig = {
- mode: 'development',
- target: 'electron-main',
- entry: {
- main: './src/main.js'
- },
- output: {
- path: path.resolve(__dirname, 'dist'),
- filename: '[name].js'
- },
- node: {
- __dirname: true,
- __filename: true
- },
- plugins: [
- new CleanWebpackPlugin()
- ],
- module: {
- rules: [{
- test: /\.js$/,
- exclude: /(node_modules|bower_components)/,
- use: {
- loader: 'babel-loader',
- options: {
- babelrc: false,
- presets: ['@babel/preset-env']
- }
- }
- }]
- }
-}
-
-const rendererConfig = {
- mode: 'development',
- target: 'electron-renderer',
- entry: {
- renderer: './src/renderer.js'
- },
- output: {
- path: path.resolve(__dirname, 'dist'),
- filename: '[name].js'
- },
- plugins: [
- new HtmlWebpackPlugin({
- template: './src/index.html',
- title: 'Test Application'
- })
- ],
- module: {
- rules: [{
- test: /\.(js|jsx)$/i,
- exclude: /(node_modules|bower_components)/,
- use: {
- loader: 'babel-loader',
- options: {
- babelrc: false,
- presets: ['@babel/preset-env']
- }
- }
- }]
- }
-}
-
-module.exports = [mainConfig, rendererConfig]