2017-11-30 04:26:27 +00:00
|
|
|
// Compile freezer using the (mostly) same webpack config
|
|
|
|
'use strict';
|
2018-01-22 23:38:06 +00:00
|
|
|
const path = require('path');
|
|
|
|
const config = require('./config');
|
2017-11-30 04:26:27 +00:00
|
|
|
|
2018-01-22 23:38:06 +00:00
|
|
|
const freezerConfig = {
|
|
|
|
target: 'node',
|
2018-03-27 04:04:08 +00:00
|
|
|
mode: 'development',
|
2018-01-22 23:38:06 +00:00
|
|
|
entry: './common/freezer',
|
|
|
|
output: {
|
|
|
|
path: config.path.output,
|
|
|
|
filename: 'freezer.js'
|
|
|
|
},
|
2017-11-30 04:26:27 +00:00
|
|
|
module: {
|
2018-01-22 23:38:06 +00:00
|
|
|
rules: [config.typescriptRule],
|
2017-11-30 04:26:27 +00:00
|
|
|
},
|
2018-01-22 23:38:06 +00:00
|
|
|
resolve: config.resolve,
|
|
|
|
};
|
2017-11-30 04:26:27 +00:00
|
|
|
|
|
|
|
module.exports = freezerConfig;
|