UNPKG

655 BJavaScriptView Raw
1const loaders = require('./loaders');
2
3module.exports = {
4 entry: [
5 './demo/entry.js'
6 ],
7 devServer: {
8 headers: {
9 'Access-Control-Allow-Origin': '*'
10 }
11 },
12 output: {
13 path: __dirname + '/../demo/lib',
14 filename: 'bundle.js',
15 sourceMapFilename: 'debugging/[file].map',
16 publicPath: 'http://localhost:8080/demo/lib/',
17 crossOriginLoading: 'use-credentials'
18 },
19 target: 'web',
20 node: {
21 fs: 'empty'
22 },
23 resolve: {
24 extensions: ['.js', '.jsx', '.styl']
25 },
26 module: {
27 rules: loaders
28 },
29 devtool: 'inline-source-map'
30};