Skip to content

Commit

Permalink
css files missing to get accordion to work
Browse files Browse the repository at this point in the history
  • Loading branch information
fbanados committed Dec 17, 2024
1 parent 8a5de47 commit ac0023d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions frontend/css/bootstrap.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins';

@import "~bootstrap/scss/transitions";
4 changes: 2 additions & 2 deletions frontend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import * as settings from "./js/settings-page.js";
import * as toast from "./js/toast.js";
import { loadParadigmAudio } from "./js/paradigm-recording";

import '../node_modules/bootstrap/js/dist/collapse.js'
//import './css/bootstrap.scss';
import 'bootstrap/js/dist/collapse.js'
import './css/bootstrap.scss';
//import '../node_modules/bootstrap/dist/css/bootstrap.css'
///////////////////////////////// Constants //////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import resolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import postcss from 'rollup-plugin-postcss'


///////////////////////////////// Constants //////////////////////////////////

const BUILD_DIR = 'generated/frontend/morphodict';
Expand All @@ -40,6 +39,7 @@ export default [ {
extract: "styles.css",
minimize: production,
sourcemap: true,
extensions: ['.css', '.sss', '.pcss', '.scss']
}),
production && terser(), // minify, but only in production

Expand Down

0 comments on commit ac0023d

Please sign in to comment.