Skip to content

Commit

Permalink
Update styles export
Browse files Browse the repository at this point in the history
  • Loading branch information
mkszepp committed Dec 13, 2023
1 parent 5e5dd80 commit a5dae15
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 49 deletions.
4 changes: 2 additions & 2 deletions docs/app/templates/public-pages/docs/installation.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
</div>

<p>
If you use vanilla CSS, you need to add the following line into <code>ember-cli-build.js</code>:
If you use vanilla CSS, you need to add the following line into <code>app.js</code>:
</p>

<CodeBlock @language="css" @code="app.import('node_modules/ember-basic-dropdown/dist/css/base.css');" />
<CodeBlock @language="css" @code="import 'ember-basic-dropdown/styles';" />

<p>
However, if you are using SASS or LESS you need to add an import statement to your styles.
Expand Down
2 changes: 2 additions & 0 deletions ember-basic-dropdown/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
# compiled output
/dist
/declarations
/_index.scss
/_index.less

# npm/pnpm/yarn pack output
*.tgz
8 changes: 4 additions & 4 deletions ember-basic-dropdown/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ export default {
copy({
targets: [
{
src: 'src/css/ember-basic-dropdown.scss',
dest: 'dist',
src: 'src/styles/ember-basic-dropdown.scss',
dest: '.',
rename: '_index.scss',
},
{
src: 'src/css/ember-basic-dropdown.less',
dest: 'dist',
src: 'src/styles/ember-basic-dropdown.less',
dest: '.',
rename: '_index.less',
},
],
Expand Down
43 changes: 0 additions & 43 deletions ember-basic-dropdown/src/css/base.css

This file was deleted.

1 change: 1 addition & 0 deletions ember-basic-dropdown/src/styles.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './styles/ember-basic-dropdown.css';

0 comments on commit a5dae15

Please sign in to comment.