Skip to content

Commit 789b4a5

Browse files
committed
add .js to @plugin at-rules to hopefully fix #16
1 parent 9d6390f commit 789b4a5

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ Aligned code with Bootstrap v4.3.0. See the [Bootstrap release notes](https://gi
1616
### Changed
1717
- Updated styles/plugins to match Bootstrap v4.3.0 (see the [release notes](https://github.com/twbs/bootstrap/releases/tag/v4.3.0) for details)
1818

19+
### Fixed
20+
- [#16](https://github.com/seanCodes/bootstrap-less-port/issues/16) – Omitting file extensions for `@plugin` at-rules causes errors when bundling with Parcel
21+
1922

2023
## [2.1.1] – 2019-07-20
2124

less/_functions.less

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
//
33
// Utility mixins and functions for evaluating source code across our variables, maps, and mixins.
44

5-
@plugin "plugins/index";
5+
@plugin "plugins/index.js";
66

77
// LESS PORT: This plugin implements a function for returning a list of keys in a map, like Sass’
88
// [`map-keys()`](http://sass-lang.com/documentation/Sass/Script/Functions.html#map_keys-instance_method)
99
// function.
10-
@plugin "plugins/map-keys";
10+
@plugin "plugins/map-keys.js";
1111

1212
// LESS PORT: This plugin implements `warn()` and `error()` functions like Sass’ `@warn` and
1313
// `@error`.
14-
@plugin "plugins/logger";
14+
@plugin "plugins/logger.js";
1515

1616
// Ascending
1717
// Used to evaluate Sass maps like our grid breakpoints.
@@ -73,23 +73,23 @@
7373
// @return #fff;
7474
// }
7575
//}
76-
@plugin "plugins/color-yiq";
76+
@plugin "plugins/color-yiq.js";
7777

7878
// Retreive color Sass maps
7979
//@function color($key: "blue") {
8080
// @return map-get($colors, $key);
8181
//}
82-
@plugin "plugins/color";
82+
@plugin "plugins/color.js";
8383

8484
//@function theme-color($key: "primary") {
8585
// @return map-get($theme-colors, $key);
8686
//}
87-
@plugin "plugins/theme-color";
87+
@plugin "plugins/theme-color.js";
8888

8989
//@function gray($key: "100") {
9090
// @return map-get($grays, $key);
9191
//}
92-
@plugin "plugins/gray";
92+
@plugin "plugins/gray.js";
9393

9494
// Request a theme color level
9595
//@function theme-color-level($color-name: "primary", $level: 0) {
@@ -99,4 +99,4 @@
9999
//
100100
// @return mix($color-base, $color, $level * $theme-color-interval);
101101
//}
102-
@plugin "plugins/theme-color-level";
102+
@plugin "plugins/theme-color-level.js";

0 commit comments

Comments
 (0)