UNPKG

hbp-react-ui

Version:

A library of useful user-interface components built with React and MobX

27 lines (19 loc) 699 B
var path = require('path'); var webpackConfig = require('./webpack.config'); var target = 'Tests'; module.exports = Object.assign({}, webpackConfig, { entry: [ './src/' + target // The is the entry point. The extensions will be specified later in the `resolve` section. ], output: { path: __dirname, filename: 'dist/' + target + '.bundle.js' // This is where the compiled bundle will be stored. }, devtool: 'source-map', devServer: { contentBase: path.resolve('.'), inline: true } }); // .\node_modules\.bin\webpack --config webpack.config.tests.js // .\node_modules\.bin\webpack-dev-server --config webpack.config.tests.js