-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.debug-test.browser.config.js
40 lines (37 loc) · 1.17 KB
/
webpack.debug-test.browser.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
33
34
35
36
37
38
39
40
// help: http://webpack.github.io/docs/configuration.html
// help: https://webpack.github.io/docs/webpack-dev-server.html#webpack-dev-server-cli
const fs = require('fs');
const path = require('path');
const webpack = require('webpack');
const loaders = require('./webpack.loaders');
const plugins = require('./webpack.plugins');
const config = {
target: 'web', // help: https://webpack.github.io/docs/configuration.html#target
entry: [
// inject some code in order to enable the auto refresh of the browse in case of a file's change
'babel-polyfill',
'webpack-dev-server/client?http://localhost:8023',
// the entry application code
path.resolve(__dirname, 'tests/index.ts')
],
externals: [],
output: {
path: path.resolve(__dirname, 'debug-ground/debug-test-on-browser'),
filename: 'debug-test-browser.js'
},
resolve: {
alias: {},
extensions: [".webpack.js", ".web.js", ".ts", ".tsx", ".js", ".jsx"]
},
module: {
loaders: loaders
},
node: {
// universal app? place here your conditional imports for node env
fs: "empty",
path: "empty",
child_process: "empty",
},
plugins: plugins,
};
module.exports = config;