kamrify commited on
Commit
f0dbec9
·
1 Parent(s): 2fc0717

Fix - dev-server-client sock being pushed in build

Browse files
Files changed (1) hide show
  1. config/webpack.config.demo.js +2 -2
config/webpack.config.demo.js CHANGED
@@ -11,11 +11,11 @@ const styleFileName = 'driver-demo.min.css';
11
  module.exports = {
12
  mode: isProduction ? 'production' : 'development',
13
  entry: [
14
- 'webpack-dev-server/client?http://localhost:3000',
15
  './demo/styles/demo.scss',
16
  './demo/scripts/demo.js',
17
  './src/index.js',
18
- ],
19
  output: {
20
  path: path.join(__dirname, '/../dist/demo'),
21
  publicPath: './',
 
11
  module.exports = {
12
  mode: isProduction ? 'production' : 'development',
13
  entry: [
14
+ !isProduction && 'webpack-dev-server/client?http://localhost:3000',
15
  './demo/styles/demo.scss',
16
  './demo/scripts/demo.js',
17
  './src/index.js',
18
+ ].filter(entryPoint => !!entryPoint),
19
  output: {
20
  path: path.join(__dirname, '/../dist/demo'),
21
  publicPath: './',