hbp-react-ui
Version:
A library of useful user-interface components built with React and MobX
38 lines (31 loc) • 1.1 kB
JavaScript
var path = require('path');
var webpackConfig = require('./webpack.config');
var target = 'tests';
module.exports = Object.assign({}, webpackConfig, {
entry: [
'./' + target // The is the entry point. The extensions will be specified later in the `resolve` section.
],
output: {
path: __dirname,
filename: './' + target + '.bundle.js' // This is where the compiled bundle will be stored.
},
devtool: 'source-map',
devServer: {
contentBase: path.resolve('.'),
inline: true,
proxy: {
'**/json/': {
target: 'http://localhost:8000',
// target: 'https://localhost:8000', // If using SSL
// secure: false
}
},
headers: {
'Access-Control-Allow-Origin': '*'
},
// hot: true
}
});
// .\node_modules\.bin\webpack --config webpack.config.tests.js
// .\node_modules\.bin\webpack-dev-server --port 8082 --config webpack.config.tests.js
// .\node_modules\.bin\documentation build src\_index.js -f md -o READMEtoo.md