From 03b3054fff38d44aad9c57b89ed974afe7afce75 Mon Sep 17 00:00:00 2001 From: Markus Sanin Date: Wed, 3 Jan 2024 08:12:23 +0100 Subject: [PATCH] Add additional option for css import --- .../public-pages/docs/installation.hbs | 21 ++++++++++--------- docs/ember-cli-build.js | 2 +- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/docs/app/templates/public-pages/docs/installation.hbs b/docs/app/templates/public-pages/docs/installation.hbs index 431fea9e2..42ebcf7f5 100644 --- a/docs/app/templates/public-pages/docs/installation.hbs +++ b/docs/app/templates/public-pages/docs/installation.hbs @@ -6,9 +6,7 @@

-
-    $ ember install ember-power-select
-  
+
$ ember install ember-power-select

@@ -27,17 +25,20 @@ In this component will be rendered the power select content.

-
-
-    <BasicDropdownWormhole />
-  
-
+ + +

+ If you use vanilla CSS, you need to add the following line into app.js or in any route/controller/component .js/.ts file: +

+ +

- If you use vanilla CSS, you need to add the following line into app.js: + Instead of adding the styling in an .js file and depending from your build config you can also add the css in any template/component css file by using following line

- +{{!-- template-lint-disable no-potential-path-strings --}} +

However, if you are using SASS or LESS you need to add an import statement to your styles. diff --git a/docs/ember-cli-build.js b/docs/ember-cli-build.js index 1cca4cd28..3fad766e3 100644 --- a/docs/ember-cli-build.js +++ b/docs/ember-cli-build.js @@ -7,7 +7,7 @@ module.exports = function (defaults) { 'ember-cli-babel': { enableTypeScriptTransform: true }, snippetPaths: ['app/components/snippets', 'app/templates/snippets/'], 'ember-prism': { - components: ['scss', 'javascript'], //needs to be an array, or undefined. + components: ['scss', 'javascript', 'handlebars', 'markup-templating'], //needs to be an array, or undefined. }, autoImport: { watchDependencies: ['ember-power-select'],