Delete old webpack configuration files
This commit is contained in:
parent
6e282ee88f
commit
2b51a5e259
4 changed files with 0 additions and 100 deletions
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"presets": [
|
||||
"es2015",
|
||||
"react"
|
||||
],
|
||||
}
|
|
@ -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",
|
||||
};
|
||||
|
|
@ -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
|
||||
})
|
||||
]
|
||||
});
|
|
@ -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")
|
||||
})
|
||||
]
|
||||
});
|
Loading…
Add table
Reference in a new issue