-
Notifications
You must be signed in to change notification settings - Fork 9
/
webpack.config.js
32 lines (30 loc) · 1.39 KB
/
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
32
const NODE_ENV = process.env.NODE_ENV || 'development';
let path = require('path');
module.exports = {
mode: NODE_ENV,
entry: {
'Components/ProgressBar': './src/modules/multiple-authors/assets/js/Components/ProgressBar.jsx',
'Components/Button': './src/modules/multiple-authors/assets/js/Components/Button.jsx',
'Components/LogBox': './src/modules/multiple-authors/assets/js/Components/LogBox.jsx',
'Components/DataMigrationBox': './src/modules/multiple-authors/assets/js/Components/DataMigrationBox.jsx',
'coauthors-migration': './src/modules/multiple-authors/assets/js/coauthors-migration.jsx',
'sync-post-author': './src/modules/multiple-authors/assets/js/sync-post-author.jsx',
'sync-author-slug': './src/modules/multiple-authors/assets/js/sync-author-slug.jsx',
'byline-migration': './src/modules/byline-migration/assets/js/byline-migration.jsx',
'bylines-migration': './src/modules/bylines-migration/assets/js/bylines-migration.jsx',
'author-boxes-block': './src/modules/author-boxes/assets/js/author-boxes-block.jsx',
},
output: {
path: path.join(__dirname, 'src/assets/js'),
filename: '[name].min.js'
},
module: {
rules: [
{
test: /.jsx$/,
exclude: /node_modules/,
loader: 'babel-loader'
}
]
}
};