Fix - dev-server-client sock being pushed in build
Browse files
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: './',
|