Skip to content

Commit 05c07d9

Browse files
committed
build: fix the build configuration to build the bootstrap version and theme properly
1 parent 8ac6736 commit 05c07d9

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

build/rollup.config.mjs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ const plugins = [
2020
exclude: 'node_modules/**',
2121
// Include the helpers in the bundle, at most one copy of each
2222
babelHelpers: 'bundled'
23+
}),
24+
BOOTSTRAP && replace({
25+
preventAssignment: true,
26+
delimiters: ['', ''],
27+
'/coreui': '/coreui', // prevents changes in URLs
28+
coreui: 'bs',
29+
'-coreui': '-bs',
30+
'coreui=': 'bs=', // [data-coreui="navigation"] => [data-bs="navigation"] (workaround for `preventAssignment` being true),
31+
'--cui-': '--bs-'
2332
})
2433
]
2534
const globals = {
@@ -34,10 +43,7 @@ if (BUNDLE) {
3443
plugins.push(
3544
replace({
3645
'process.env.NODE_ENV': '"production"',
37-
preventAssignment: true,
38-
...BOOTSTRAP && {
39-
'coreui.': 'bs.'
40-
}
46+
preventAssignment: true
4147
}),
4248
nodeResolve()
4349
)

scss/themes/bootstrap/_variables.scss

Lines changed: 0 additions & 2 deletions
This file was deleted.

scss/themes/bootstrap/bootstrap.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@import "variables";
2-
31
@import "mixins/banner";
42
@include bsBanner("");
53

0 commit comments

Comments
 (0)