From 525d3444fe7d0e3fd473f08391ebc627d38b1073 Mon Sep 17 00:00:00 2001 From: nixa <4dmitr@gmail.com> Date: Fri, 20 May 2016 18:03:29 +0300 Subject: [PATCH] fix(webpack): correct relative base url to work inside a folder --- config/webpack.prod.js | 3 ++- src/app/theme/sass/conf/_variables.scss | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/webpack.prod.js b/config/webpack.prod.js index 38fb5240..dc36ebde 100644 --- a/config/webpack.prod.js +++ b/config/webpack.prod.js @@ -22,7 +22,8 @@ const METADATA = webpackMerge(commonConfig.metadata, { host: HOST, port: PORT, ENV: ENV, - HMR: false + HMR: false, + baseUrl: '' }); module.exports = webpackMerge(commonConfig, { diff --git a/src/app/theme/sass/conf/_variables.scss b/src/app/theme/sass/conf/_variables.scss index 73ca336e..bf041af0 100644 --- a/src/app/theme/sass/conf/_variables.scss +++ b/src/app/theme/sass/conf/_variables.scss @@ -20,7 +20,7 @@ $large-card-height: 974px; $default-animation-duration: 0.2s; $default-animation-style: ease-out; -$assets-root: '../assets/'; +$assets-root: 'assets/'; $images-root: $assets-root + 'img/'; $fonts-root: $assets-root + 'fonts/'; $font-thin: 100;