Remove fixed relative path for assets

This commit is contained in:
Kevin Decherf 2017-12-20 21:53:11 +01:00
parent 887073dedc
commit e8694faad6
2 changed files with 9 additions and 1 deletions

View file

@ -79,6 +79,14 @@ class AppKernel extends Kernel
], ],
]); ]);
} }
else
{
$container->loadFromExtension('framework', [
'assets' => [
'base_url' => $container->getParameter('domain_name'),
]
]);
}
}); });
} }
} }

View file

@ -14,7 +14,7 @@ module.exports = function () {
output: { output: {
filename: '[name].js', filename: '[name].js',
path: path.resolve(rootDir, 'web/wallassets'), path: path.resolve(rootDir, 'web/wallassets'),
publicPath: '/wallassets/', publicPath: '',
}, },
plugins: [ plugins: [
new webpack.ProvidePlugin({ new webpack.ProvidePlugin({