forked from alphaeadevelopment/material-ui-jsonschema-form
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.config.js
More file actions
executable file
·35 lines (33 loc) · 831 Bytes
/
webpack.config.js
File metadata and controls
executable file
·35 lines (33 loc) · 831 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
28
29
30
31
32
33
34
35
/* eslint-disable */
const fs = require('fs');
const path = require('path');
const webpack = require('webpack');
const babelExclude = /node_modules/;
const alias = {}
if (process.env.NODE_ENV !== 'production' && process.env.NO_STUBS === undefined) {
};
var config = {
entry: path.join(__dirname, 'src/index.js'),
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js',
libraryTarget: 'commonjs',
},
module: {
rules: [
{
test: /\.jsx?$/,
use: ['babel-loader'],
exclude: babelExclude,
},
]
},
resolve: {
extensions: ['.js', '.jsx'],
alias
},
externals: /^(react|material-ui(\/.*)?|immutability-helper|classnames|codemirror|lodash(\/.*)?|@material-ui\/icons(\/.*)?|react-codemirror2|shortid)$/,
plugins: [
],
}
module.exports = config