Skip to content

Third party scss #231

New issue

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

Closed
MaklaCof opened this issue May 4, 2017 · 1 comment
Closed

Third party scss #231

MaklaCof opened this issue May 4, 2017 · 1 comment

Comments

@MaklaCof
Copy link

MaklaCof commented May 4, 2017

Where should I put 3rd party scss? I found this question, but no solution.
I am using Kendo UI for Angular and I need to place scss globally.

I tried to add it to main.browser.ts, but it is not added.

import './polyfills/browser.polyfills';
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { BrowserAppModule } from './app/browser-app.module';

import "../node_modules/@progress/kendo-theme-default/scss/all.scss";       //<-----------------------

const rootElemTagName = 'app'; // Update this if you change your root component selector

// // Enable either Hot Module Reloading or production mode
if (module['hot']) {
    module['hot'].accept();
    module['hot'].dispose(() => {
        // Before restarting the app, we create a new root element and dispose the old one
        const oldRootElem = document.querySelector(rootElemTagName);
        const newRootElem = document.createElement(rootElemTagName);
        oldRootElem.parentNode.insertBefore(newRootElem, oldRootElem);
        modulePromise.then(appModule => appModule.destroy());
    });
} else {
    enableProdMode();
}

const modulePromise = platformBrowserDynamic().bootstrapModule(BrowserAppModule);
@TimHarker
Copy link
Contributor

TimHarker commented May 4, 2017

I've put mine here... and it's worked.

image

@MaklaCof MaklaCof closed this as completed May 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants