diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/AppKernel.php | 6 | ||||
-rw-r--r-- | app/config/webpack/common.js | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/app/AppKernel.php b/app/AppKernel.php index 90e9f1d8..40726f05 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php | |||
@@ -78,6 +78,12 @@ class AppKernel extends Kernel | |||
78 | 'base_url' => 'http://localhost:8080/', | 78 | 'base_url' => 'http://localhost:8080/', |
79 | ], | 79 | ], |
80 | ]); | 80 | ]); |
81 | } else { | ||
82 | $container->loadFromExtension('framework', [ | ||
83 | 'assets' => [ | ||
84 | 'base_url' => $container->getParameter('domain_name'), | ||
85 | ], | ||
86 | ]); | ||
81 | } | 87 | } |
82 | }); | 88 | }); |
83 | } | 89 | } |
diff --git a/app/config/webpack/common.js b/app/config/webpack/common.js index 47113950..233497fd 100644 --- a/app/config/webpack/common.js +++ b/app/config/webpack/common.js | |||
@@ -14,7 +14,7 @@ module.exports = function () { | |||
14 | output: { | 14 | output: { |
15 | filename: '[name].js', | 15 | filename: '[name].js', |
16 | path: path.resolve(rootDir, 'web/wallassets'), | 16 | path: path.resolve(rootDir, 'web/wallassets'), |
17 | publicPath: '/wallassets/', | 17 | publicPath: '', |
18 | }, | 18 | }, |
19 | plugins: [ | 19 | plugins: [ |
20 | new webpack.ProvidePlugin({ | 20 | new webpack.ProvidePlugin({ |