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/'
- },
-
- externals: {
- webtorrent: 'WebTorrent'
+ libraryTarget: 'var'
},
module: {
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),
historyApiFallback: true,
watchOptions: {
ignored: /node_modules/
- },
- outputPath: helpers.root('dist')
+ }
},
/*
node: {
global: true,
crypto: 'empty',
+ fs: 'empty',
process: true,
module: false,
clearImmediate: false,