thunderhub/server/webpack.development.js
Anthony Potdevin 22196e8468
Feat/v0.2.0 (#19)
* chore: bump version

* style: password field changes

* Feat/lerna integration (#17)

* chore: move into package folder

* chore: initial lerna setup

* chore: yarn lock cleanup

* chore: package organization

* chore: yarn lock update

* chore: update packages

* chore: wip lerna integration

* chore: downgrade date-fns

* chore: lerna cleanup

* chore: add env file

* docs: update README

* chore: organize configs

* Feat/hodlhodl integration (#18)

* feat: hodl integration start

* chore: add pagination and more

* chore: change filter flow

* chore: change offer card ui

* chore: more offer card changes

* chore: small refactors and stylings

* v0.2.0

* docs: update README
2020-04-08 20:06:59 +02:00

31 lines
983 B
JavaScript

const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const merge = require('webpack-merge');
const nodeExternals = require('webpack-node-externals');
const path = require('path');
const webpack = require('webpack');
const WebpackShellPlugin = require('webpack-shell-plugin');
const common = require('./webpack.common.js');
module.exports = merge.smart(common, {
devtool: 'inline-source-map',
entry: ['webpack/hot/poll?1000', path.join(__dirname, 'src/main.ts')],
externals: [
nodeExternals({
modulesDir: path.resolve(__dirname, '../node_modules'),
whitelist: ['webpack/hot/poll?1000'],
}),
nodeExternals({
whitelist: ['webpack/hot/poll?1000'],
}),
],
mode: 'development',
plugins: [
new CleanWebpackPlugin(),
new webpack.HotModuleReplacementPlugin(),
new WebpackShellPlugin({
onBuildEnd: ['yarn dev'],
}),
],
watch: true,
});