I'm submitting a ...
[x] bug report
[ ] feature request
[ ] question about the decisions made in the repository
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
I just change the theme to blur, and try to build in prod mode.
In dev mode everything was correct.
Dev mode picture
But when I try to build in prod mode it was something problem.
Prod mode picture
Here is my code about theme relation.
conf.scss
@import 'mixins';
@import 'colorSchemes/blur';
@import 'variables';
theme.config.ts
import {Injectable} from '@angular/core';
import {BaThemeConfigProvider} from './theme.configProvider';
import {colorHelper} from './theme.constants';
@Injectable()
export class BaThemeConfig {
constructor(private _baConfig:BaThemeConfigProvider) {
this._config();
}
private _config() {
this._baConfig.changeTheme({name: 'blur'});
let colorScheme = {
primary: '#209e91',
info: '#2dacd1',
success: '#90b900',
warning: '#dfb81c',
danger: '#e85656',
};
this._baConfig.changeColors({
default: '#4e4e55',
defaultText: '#e2e2e2',
border: '#dddddd',
borderDark: '#aaaaaa',
primary: colorScheme.primary,
info: colorScheme.info,
success: colorScheme.success,
warning: colorScheme.warning,
danger: colorScheme.danger,
primaryLight: colorHelper.tint(colorScheme.primary, 30),
infoLight: colorHelper.tint(colorScheme.info, 30),
successLight: colorHelper.tint(colorScheme.success, 30),
warningLight: colorHelper.tint(colorScheme.warning, 30),
dangerLight: colorHelper.tint(colorScheme.danger, 30),
primaryDark: colorHelper.shade(colorScheme.primary, 15),
infoDark: colorHelper.shade(colorScheme.info, 15),
successDark: colorHelper.shade(colorScheme.success, 15),
warningDark: colorHelper.shade(colorScheme.warning, 15),
dangerDark: colorHelper.shade(colorScheme.danger, 15),
dashboard: {
blueStone: '#005562',
surfieGreen: '#0e8174',
silverTree: '#6eba8c',
gossip: '#b9f2a1',
white: '#10c4b5',
},
});
}
}
Please tell us about your environment:
Angular version: 2.2.3
same here, I would simulate the issue
I use this command to publish the production version:
npm run prebuild:prod && npm run build:prod && npm run server:prod
Any news on this issue?
Guys, can you check this?
Hi, @diamond-darrell. This bag was fixed in the latest version https://github.com/akveo/ng2-admin/commit/0528e2e39fa5efbe4128d052401af66588bc03c8.
Excellent, thank you, @LexZhukov