Skip to content

Commit

Permalink
move less var to another file
Browse files Browse the repository at this point in the history
relates #77
  • Loading branch information
rehabas committed Apr 7, 2020
1 parent 629c850 commit c9f9edd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/config-overrides.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { override, fixBabelImports, addLessLoader } = require('customize-cra');
const lessVariables = require('./lessVariables');

module.exports = override(
fixBabelImports('import', {
Expand All @@ -8,6 +9,6 @@ module.exports = override(
}),
addLessLoader({
javascriptEnabled: true,
modifyVars: { '@primary-color': '#E8505B' },
modifyVars: lessVariables,
})
);
5 changes: 5 additions & 0 deletions client/lessVariables.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const lessVariables = {
'@primary-color': '#E8505B',
};

module.exports = lessVariables;

0 comments on commit c9f9edd

Please sign in to comment.