Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
brettforbes committed Jul 12, 2024
2 parents 57e9187 + e8cf60b commit eaea3de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ const fs = require('fs');

const paths = require('./webpack._paths')

const isDevelopment = process.env.NODE_ENV !== 'production';

const htmlBodyContent = fs.readFileSync(paths.src + '/html/content.html').toString();

const htmlHeader = "<script src='http://localhost:35729/livereload.js'></script>";
const htmlHeader = isDevelopment ? "<script src='http://localhost:35729/livereload.js'></script>" : "";

const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin')
Expand All @@ -29,8 +31,6 @@ const scssEntries = scssFiles.map((filename) => {
//load package.json
const config = require('./package');

const isDevelopment = process.env.NODE_ENV !== 'production';

module.exports = {
// Where webpack looks to start building the bundle
entry: {
Expand Down

0 comments on commit eaea3de

Please sign in to comment.