-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.dev.config.js
More file actions
27 lines (26 loc) · 983 Bytes
/
webpack.dev.config.js
File metadata and controls
27 lines (26 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const { createConfig } = require('@edx/frontend-build');
const path = require('path');
module.exports = createConfig('webpack-dev-server', {
devServer: {
allowedHosts: ['all'],
client: {
webSocketURL: 'auto://0.0.0.0:0/ws',
},
},
resolve: {
/*
Make sure webpack picks only one version for each dependency that also exists in frontend-app-learning.
Useful when developing with npm link.
*/
alias: {
'@edx/frontend-platform': path.resolve('./node_modules/@edx/frontend-platform'),
'@edx/paragon': path.resolve('./node_modules/@edx/paragon'),
'prop-types': path.resolve('./node_modules/prop-types'),
react: path.resolve('./node_modules/react'),
'react-dom': path.resolve('./node_modules/react-dom'),
'react-redux': path.resolve('./node_modules/react-redux'),
'react-router-dom': path.resolve('./node_modules/react-router-dom'),
redux: path.resolve('./node_modules/redux'),
},
},
});