host: HOST,
port: PORT,
ENV: ENV,
- HMR: HMR
+ HMR: HMR,
+ API_URL: 'http://localhost:9000'
})
const DllBundlesPlugin = require('webpack-dll-bundles-plugin').DllBundlesPlugin
chunkFilename: '[id].chunk.js',
library: 'ac_[name]',
- libraryTarget: 'var',
-
- publicPath: '/client/'
+ libraryTarget: 'var'
},
- externals: {
- webtorrent: 'WebTorrent'
+ module: {
+
+ // Too slow, life is short
+ // rules: [
+ // {
+ // test: /\.ts$/,
+ // use: [
+ // {
+ // loader: 'tslint-loader',
+ // options: {
+ // configFile: 'tslint.json'
+ // }
+ // }
+ // ],
+ // exclude: [
+ // /\.(spec|e2e)\.ts$/,
+ // /node_modules\//
+ // ]
+ // }
+ // ]
},
plugins: [
new DefinePlugin({
'ENV': JSON.stringify(METADATA.ENV),
'HMR': METADATA.HMR,
+ 'API_URL': JSON.stringify(METADATA.API_URL),
+ 'process.version': JSON.stringify(process.version),
'process.env': {
'ENV': JSON.stringify(METADATA.ENV),
'NODE_ENV': JSON.stringify(METADATA.ENV),
{
name: 'zone.js',
path: 'zone.js/dist/long-stack-trace-zone.js'
- },
- 'ts-helpers'
+ }
],
vendor: [
'@angular/platform-browser',
tslint: {
emitErrors: false,
failOnHint: false,
+ typeCheck: true,
resourcePath: 'src'
},
host: METADATA.host,
historyApiFallback: true,
watchOptions: {
- aggregateTimeout: 300,
- poll: 1000
- },
- outputPath: helpers.root('dist')
+ ignored: /node_modules/
+ }
},
/*
node: {
global: true,
crypto: 'empty',
+ fs: 'empty',
process: true,
module: false,
clearImmediate: false,