alias of ui scss is modified

This commit is contained in:
병준 박 2019-11-01 13:42:08 +09:00
parent fdba1d11a6
commit 0f4c612de5
3 changed files with 12 additions and 4 deletions

View File

@ -27,9 +27,6 @@
"projects/ucap-webmessenger-app/src/favicon.ico", "projects/ucap-webmessenger-app/src/favicon.ico",
"projects/ucap-webmessenger-app/src/assets" "projects/ucap-webmessenger-app/src/assets"
], ],
"stylePreprocessorOptions": {
"includePaths": ["projects/ucap-webmessenger-ui/src/assets/scss"]
},
"styles": ["projects/ucap-webmessenger-app/src/styles.scss"], "styles": ["projects/ucap-webmessenger-app/src/styles.scss"],
"scripts": [], "scripts": [],
"customWebpackConfig": { "customWebpackConfig": {

View File

@ -1,7 +1,18 @@
const path = require('path');
module.exports = (config, options) => { module.exports = (config, options) => {
const PRODUCTION = process.env.NODE_ENV === 'production'; const PRODUCTION = process.env.NODE_ENV === 'production';
config.target = 'electron-renderer'; config.target = 'electron-renderer';
config.resolve.alias = {
...config.resolve.alias,
'@ucap-webmessenger-scss/ui': path.resolve(
__dirname,
'..',
'projects/ucap-webmessenger-ui/src/assets/scss'
)
};
return config; return config;
}; };

View File

@ -1,4 +1,4 @@
@import 'ucap-ui'; @import '~@ucap-webmessenger-scss/ui/ucap-ui';
@import 'assets/scss/ucap'; @import 'assets/scss/ucap';