forked from publishpress/PublishPress-Planner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
31 lines (30 loc) · 901 Bytes
/
webpack.config.js
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
28
29
30
31
const NODE_ENV = process.env.NODE_ENV || 'development';
module.exports = {
mode: NODE_ENV,
entry: {
'modules/custom-status/lib/custom-status-block': './modules/custom-status/lib/custom-status-block.jsx',
'modules/calendar/lib/async-calendar/js/index': './modules/calendar/lib/async-calendar/js/index.jsx',
'modules/efmigration/lib/js/efmigration': './modules/efmigration/lib/js/efmigration.jsx'
},
output: {
path: __dirname,
filename: '[name].min.js'
},
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'babel-loader'
},
{
test: /\.js$/,
enforce: 'pre',
use: ['source-map-loader'],
},
]
},
resolve: {
extensions: ['.js', '.jsx']
}
};