提交 f0dbec9d 编写于 作者: K Kamran Ahmed

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

上级 2fc07176
......@@ -11,11 +11,11 @@ const styleFileName = 'driver-demo.min.css';
module.exports = {
mode: isProduction ? 'production' : 'development',
entry: [
'webpack-dev-server/client?http://localhost:3000',
!isProduction && 'webpack-dev-server/client?http://localhost:3000',
'./demo/styles/demo.scss',
'./demo/scripts/demo.js',
'./src/index.js',
],
].filter(entryPoint => !!entryPoint),
output: {
path: path.join(__dirname, '/../dist/demo'),
publicPath: './',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册