Created
August 10, 2021 04:40
-
-
Save phpmaps/e18b19377e677f45d21675a1f70e36b7 to your computer and use it in GitHub Desktop.
bla.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = [{ | |
| mode: 'development', | |
| entry: './app/main.ts', | |
| target: 'electron-main', | |
| devtool: 'source-map', | |
| module: { | |
| rules: [{ | |
| test: /\.(?:tsx|ts)$/, | |
| include: /app/, | |
| use: [{ | |
| loader: 'ts-loader' | |
| }] | |
| }] | |
| }, | |
| output: { | |
| filename: "[name].[chunkhash].js", | |
| path: __dirname + '/dist' | |
| } | |
| }, | |
| { | |
| mode: 'development', | |
| entry: ['./app/renderer/main.scss', './app/renderer/react.tsx'], | |
| target: 'electron-renderer', | |
| devtool: 'source-map', | |
| module: { | |
| rules: [ | |
| { | |
| test: /\.(?:tsx|ts)$/, | |
| loader: "ts-loader", | |
| exclude: /node_modules/, | |
| // options: { | |
| // transpileOnly: true | |
| // } | |
| }, | |
| { | |
| test: /\.scss$/, | |
| use: [ | |
| MiniCssExtractPlugin.loader, | |
| "css-loader", | |
| { | |
| loader: "resolve-url-loader", | |
| options: { | |
| includeRoot: true | |
| } | |
| }, | |
| "sass-loader?sourceMap" | |
| ] | |
| }, | |
| { | |
| test: /\.(png|jpg|gif|svg|eot|ttf|woff|woff2)$/, | |
| loader: 'url-loader', | |
| options: { | |
| limit: 10000 | |
| } | |
| }, | |
| { | |
| test: /\.css$/i, | |
| use: ['style-loader', 'css-loader'], | |
| }, | |
| { | |
| test: /\.svg$/, | |
| loader: 'svg-sprite-loader', | |
| exclude: /node_modules/ | |
| } | |
| ] | |
| }, | |
| output: { | |
| path: __dirname + '/dist', | |
| filename: 'react.js' | |
| }, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment