Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

Commit

Permalink
Changed mode to production.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcast01 committed Jun 18, 2020
1 parent 2a44720 commit 49e0f0e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions webpack.production.config.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
const path = require("path")
const HtmlWebpackPlugin = require("html-webpack-plugin")
const Dotenv = require("dotenv-webpack")
const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const Dotenv = require('dotenv-webpack')

module.exports = {
entry: "./app/index.js",
entry: './app/index.js',
output: {
path: path.resolve(__dirname, "dist"),
filename: "index_bundle.js",
path: path.resolve(__dirname, 'dist'),
filename: 'index_bundle.js',
},
module: {
rules: [
{ test: /\.(js)$/, use: "babel-loader" },
{ test: /\.css$/, use: ["style-loader", "css-loader"] },
{ test: /\.(js)$/, use: 'babel-loader' },
{ test: /\.css$/, use: ['style-loader', 'css-loader'] },
{
test: /\.(png|jpg|gif|mp3|ico|svg)$/,
loader: "file-loader",
loader: 'file-loader',
options: {},
},
],
},
mode: "development",
mode: 'production',
node: {
fs: "empty",
fs: 'empty',
},
plugins: [
new HtmlWebpackPlugin({
template: "app/index.html",
template: 'app/index.html',
}),
new Dotenv(),
],
Expand Down

0 comments on commit 49e0f0e

Please sign in to comment.