Skip to content

Commit

Permalink
Add option for custom $icon-font-path
Browse files Browse the repository at this point in the history
Add configuration option to disable the addition of the default
$icon-font-path so we can use our own custom path within our Sass files.
  • Loading branch information
HorizonXP committed Feb 5, 2016
1 parent 33a9529 commit 8bd18ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/bootstrap.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export function createConfig({
bootstrapCustomizations,
appStyles,
useFlexbox: rawConfig.useFlexbox,
useCustomIconFontPath: rawConfig.useCustomIconFontPath,
extractStyles: extractStyles || getEnvProp('extractStyles', rawConfig),
styleLoaders: rawConfig.styleLoaders,
styles: selectUserModules(rawConfig.styles, defaultConfig.styles),
Expand All @@ -99,6 +100,7 @@ export function createConfig({
bootstrapVersion,
loglevel,
useFlexbox: defaultConfig.useFlexbox,
useCustomIconFontPath: defaultConfig.useCustomIconFontPath,
extractStyles: extractStyles || getEnvProp('extractStyles', defaultConfig),
styleLoaders: defaultConfig.styleLoaders,
styles: selectModules(defaultConfig.styles),
Expand Down
3 changes: 2 additions & 1 deletion src/bootstrap.styles.loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = function() {
styles,
bootstrapRelPath,
useFlexbox,
useCustomIconFontPath,
preBootstrapCustomizations,
bootstrapCustomizations,
appStyles,
Expand Down Expand Up @@ -47,7 +48,7 @@ module.exports = function() {
createBootstrapImport('variables', bootstrapVersion, bootstrapRelPath)
);

if (bootstrapVersion === 3) {
if (bootstrapVersion === 3 && !useCustomIconFontPath) {
processedStyles.push(
`$icon-font-path: "${getFontsPath(bootstrapRelPath, this)}";`
);
Expand Down

0 comments on commit 8bd18ff

Please sign in to comment.