jeudi 16 mai 2019

How do I install bootstrap 4 template to Ember web project?

This is a continuation of another post I have posted: click here

I have downloaded the INSPINIA admin theme, which is based off twitter bootstrap. It contains pre-created projects for most web-ui frameworks, except Ember. Steps taken so far:

  1. Installed ember-boostrap
  2. Installed SASS pre-processor
  3. Copied the *.scss files into the app/styles folder
  4. The app.scss file looks as follows:

app\styles\app.scss

@import "ember-bootstrap/bootstrap";

@import "style";

  1. The Ember-Cli-Build.js file is as follows:

Ember-Cli-Build.js

'use strict';

const EmberApp = require('ember-cli/lib/broccoli/ember-app');

module.exports = function(defaults) {
  let app = new EmberApp(defaults, {
    'ember-bootstrap': {
      'bootstrapVersion': 4,
      'importBootstrapFont': false,
      'importBootstrapCSS': false
    }
  });
  return app.toTree();
};




Aucun commentaire:

Enregistrer un commentaire