diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-11 15:19:43 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-11 15:19:43 +0200 |
commit | 1840c2f7c91f5f89602a3683d85b0a9df1454855 (patch) | |
tree | 7efc223222e2d318abfaef0839a79e23be727cea /client/config/webpack.dev.js | |
parent | 8635a2c70cc24a4c52558162ac058de95750271f (diff) | |
download | PeerTube-1840c2f7c91f5f89602a3683d85b0a9df1454855.tar.gz PeerTube-1840c2f7c91f5f89602a3683d85b0a9df1454855.tar.zst PeerTube-1840c2f7c91f5f89602a3683d85b0a9df1454855.zip |
Update webpack stack
Diffstat (limited to 'client/config/webpack.dev.js')
-rw-r--r-- | client/config/webpack.dev.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/client/config/webpack.dev.js b/client/config/webpack.dev.js index 03d6d2fba..d6ebed730 100644 --- a/client/config/webpack.dev.js +++ b/client/config/webpack.dev.js | |||
@@ -22,7 +22,8 @@ const METADATA = webpackMerge(commonConfig({env: ENV}).metadata, { | |||
22 | host: HOST, | 22 | host: HOST, |
23 | port: PORT, | 23 | port: PORT, |
24 | ENV: ENV, | 24 | ENV: ENV, |
25 | HMR: HMR | 25 | HMR: HMR, |
26 | API_URL: 'http://localhost:9000' | ||
26 | }) | 27 | }) |
27 | 28 | ||
28 | const DllBundlesPlugin = require('webpack-dll-bundles-plugin').DllBundlesPlugin | 29 | const DllBundlesPlugin = require('webpack-dll-bundles-plugin').DllBundlesPlugin |
@@ -79,9 +80,7 @@ module.exports = function (env) { | |||
79 | chunkFilename: '[id].chunk.js', | 80 | chunkFilename: '[id].chunk.js', |
80 | 81 | ||
81 | library: 'ac_[name]', | 82 | library: 'ac_[name]', |
82 | libraryTarget: 'var', | 83 | libraryTarget: 'var' |
83 | |||
84 | publicPath: '/client/' | ||
85 | }, | 84 | }, |
86 | 85 | ||
87 | externals: { | 86 | externals: { |
@@ -125,6 +124,7 @@ module.exports = function (env) { | |||
125 | new DefinePlugin({ | 124 | new DefinePlugin({ |
126 | 'ENV': JSON.stringify(METADATA.ENV), | 125 | 'ENV': JSON.stringify(METADATA.ENV), |
127 | 'HMR': METADATA.HMR, | 126 | 'HMR': METADATA.HMR, |
127 | 'API_URL': JSON.stringify(METADATA.API_URL), | ||
128 | 'process.env': { | 128 | 'process.env': { |
129 | 'ENV': JSON.stringify(METADATA.ENV), | 129 | 'ENV': JSON.stringify(METADATA.ENV), |
130 | 'NODE_ENV': JSON.stringify(METADATA.ENV), | 130 | 'NODE_ENV': JSON.stringify(METADATA.ENV), |
@@ -234,8 +234,7 @@ module.exports = function (env) { | |||
234 | historyApiFallback: true, | 234 | historyApiFallback: true, |
235 | watchOptions: { | 235 | watchOptions: { |
236 | ignored: /node_modules/ | 236 | ignored: /node_modules/ |
237 | }, | 237 | } |
238 | outputPath: helpers.root('dist') | ||
239 | }, | 238 | }, |
240 | 239 | ||
241 | /* | 240 | /* |