We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to include custom bootstrap theme? I downloaded theme from https://bootswatch.com. It contains two files: bootswatch.less and variables.less.
I had placed its in app folder and imported from bootstrap.config.less
@import "./theme/lumen/variables"; @import "./theme/lumen/bootswatch";
Theme changed but it looks broken. Maybe bootswatch.less overrides bootstrap styles and should be imported last ?
There is my configuration: https://github.com/pochemuto/mortgage
The text was updated successfully, but these errors were encountered:
Issues was with redundant import bootstrap-webpack in js code: import "bootstrap-webpack";
import "bootstrap-webpack";
Sorry, something went wrong.
So, yes. The problem is there. Import was redundant but removing them didn't help. The problem is related that ticket #23
I found workaround: create somewhere in your app folder bootstrap.less file with following content:
bootstrap.less
@import "~bootstrap/less/mixins"; @import "theme/lumen/variables"; @import "theme/lumen/bootswatch";
bootswatch requires variables and last one might have bootstrap dependencies. In my case it was mixins.
Add file path to entry in webpack.config.js:
webpack.config.js
module.exports = { context: __dirname + "/app", entry: ['!!bootstrap-webpack!../bootstrap.config.js', './client/index.ts', './client/css/bootstrap.less'], output: ...
And then it will work.
No branches or pull requests
How to include custom bootstrap theme?
I downloaded theme from https://bootswatch.com. It contains two files: bootswatch.less and variables.less.
I had placed its in app folder and imported from bootstrap.config.less
Theme changed but it looks broken. Maybe bootswatch.less overrides bootstrap styles and should be imported last ?
There is my configuration: https://github.com/pochemuto/mortgage
The text was updated successfully, but these errors were encountered: