File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,11 @@ const fs = require('fs');
6
6
7
7
const paths = require ( './webpack._paths' )
8
8
9
+ const isDevelopment = process . env . NODE_ENV !== 'production' ;
10
+
9
11
const htmlBodyContent = fs . readFileSync ( paths . src + '/html/content.html' ) . toString ( ) ;
10
12
11
- const htmlHeader = "<script src='http://localhost:35729/livereload.js'></script>" ;
13
+ const htmlHeader = isDevelopment ? "<script src='http://localhost:35729/livereload.js'></script>" : " ";
12
14
13
15
const MiniCssExtractPlugin = require ( 'mini-css-extract-plugin' )
14
16
const CssMinimizerPlugin = require ( 'css-minimizer-webpack-plugin' )
@@ -29,8 +31,6 @@ const scssEntries = scssFiles.map((filename) => {
29
31
//load package.json
30
32
const config = require ( './package' ) ;
31
33
32
- const isDevelopment = process . env . NODE_ENV !== 'production' ;
33
-
34
34
module . exports = {
35
35
// Where webpack looks to start building the bundle
36
36
entry : {
You can’t perform that action at this time.
0 commit comments