Closed Kukkimonsuta closed 4 years ago
I have the same problem when importing antd (a css framework). Using @import '~antd/dist/antd.less'
it will rebuild all the less files of the framework (quite a lot), while with @import '../node_modules/antd/dist/antd.less'
it will only rebuild changed files. The later one causes build time to be decreased significantly from 6 to 2 seconds.
@sinnlosername You problem not related to this, please do not write about irrelevant problems in other people's problems, if you have problems - open a new issue with reproducible test repo
@evilebottnawi The problem I wrote about is caused by this issue, tho it might have been a bit unclear in my original post. I have edited the post to clarify it.
I can't understand the original issue, editing src/index.js
never run recompile less files
@sinnlosername Are you sure it is your problem? Original problem is not reproducible
@import '~bootstrap-less-port/less/bootstrap.less';
/*
Hash: ef14814bf77628900498
Version: webpack 4.43.0
Time: 18ms
Built at: 06/11/2020 3:20:27 PM
Asset Size Chunks Chunk Names
main.js 201 KiB main [emitted] main
Entrypoint main = main.js
[./src/index.js] 88 bytes {main} [built]
+ 2 hidden modules
*/
@import '../node_modules/bootstrap-less-port/less/bootstrap.less';
/*
Hash: f7f3b1d0a04cd8bb4909
Version: webpack 4.43.0
Time: 22ms
Built at: 06/11/2020 3:20:57 PM
Asset Size Chunks Chunk Names
main.js 201 KiB main [emitted] main
Entrypoint main = main.js
[./src/index.js] 99 bytes {main} [built]
+ 2 hidden modules
*/
It may be system related perhaps, are you on windows? The problem described by @sinnlosername is exactly the same as what I've described. I can still reproduce it following the step in original post on fresh clone:
Initial build (good):
Hash: 87a6288041b142d1202c
Version: webpack 4.43.0
Time: 1581ms
Built at: 06/11/2020 2:13:27 PM
Asset Size Chunks Chunk Names
main.js 201 KiB main [emitted] main
Entrypoint main = main.js
[./src/index.js] 49 bytes {main} [built]
[./src/styles.less] 184 KiB {main} [built]
+ 1 hidden module
After editing index.js (not good):
Hash: 8154173544c0ed3f6a2a
Version: webpack 4.43.0
Time: 1838ms
Built at: 06/11/2020 2:13:53 PM
Asset Size Chunks Chunk Names
main.js 201 KiB main [emitted] main
Entrypoint main = main.js
[./src/index.js] 50 bytes {main} [built]
[./src/styles.less] 184 KiB {main} [built]
+ 1 hidden module
When using @import '../node_modules/
instead and editing index.js
(good):
Hash: a47bda1c3c34470c0ed1
Version: webpack 4.43.0
Time: 34ms
Built at: 06/11/2020 2:19:08 PM
Asset Size Chunks Chunk Names
main.js 201 KiB main [emitted] main
Entrypoint main = main.js
[./src/index.js] 51 bytes {main} [built]
+ 2 hidden modules
hm, let't me time to run windows machine, no problems on linux and macos
Just note.
[./src/index.js] 50 bytes {main} [built]
[./src/styles.less] 184 KiB {main} [built]
+ 1 hidden module
and
[./src/index.js] 51 bytes {main} [built]
+ 2 hidden modules
same things, in second case webpack just hide module, because name is long
But based on time we have a problems on windows
WIP
Found a bug on less
side (less
returns all imported files after compile, it is allow to watch them):
Linux/MacOS:
[ '/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/bootstrap.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_functions.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_root.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_mixins.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_type.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_images.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_code.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_tables.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_grid.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_buttons.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_transitions.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_dropdown.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_button-group.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_input-group.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_nav.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_breadcrumb.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_card.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_pagination.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_jumbotron.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_badge.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_progress.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_alert.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_media.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_close.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_toasts.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_list-group.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_modal.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_tooltip.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_carousel.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_popover.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_spinners.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_reboot.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_forms.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_custom-forms.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_navbar.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_utilities.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_print.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/plugins/logger.js',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/plugins/map-keys.js',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/plugins/index.js',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/plugins/escape-svg.js',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/plugins/color-yiq.js',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/plugins/color.js',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/plugins/theme-color.js',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/plugins/gray.js',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/plugins/valid-calc.js',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/_variables.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/plugins/theme-color-level.js',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/vendor/_rfs.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_deprecate.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_hover.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_breakpoints.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_image.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_badge.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_resize.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_screen-reader.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_size.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_reset-text.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_text-emphasis.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_text-hide.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_text-truncate.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_visibility.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_alert.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_buttons.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_caret.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_pagination.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_lists.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_list-group.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_nav-divider.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_forms.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_table-row.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_background-variant.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_border-radius.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_box-shadow.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_gradients.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_transition.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_clearfix.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_grid-framework.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_grid.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/mixins/_float.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/utilities/_align.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/utilities/_background.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/utilities/_borders.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/utilities/_clearfix.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/utilities/_display.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/utilities/_embed.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/utilities/_flex.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/utilities/_float.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/utilities/_overflow.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/utilities/_position.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/utilities/_screenreaders.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/utilities/_shadows.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/utilities/_sizing.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/utilities/_stretched-link.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/utilities/_spacing.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/utilities/_text.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/utilities/_visibility.less',
'/home/evilebottnawi/IdeaProjects/test-webpack-watch/node_modules/bootstrap-less-port/less/plugins/breakpoints.js' ]
Windows:
[ 'C:/Users/IEUser/test-webpack-watch/node_modules/bootstrap-less-port/less/bootstrap.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_functions.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_mixins.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_root.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_type.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_code.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_images.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_grid.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_tables.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_buttons.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_transitions.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_dropdown.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_button-group.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_input-group.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_nav.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_card.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_pagination.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_breadcrumb.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_badge.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_jumbotron.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_alert.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_progress.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_list-group.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_media.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_toasts.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_close.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_modal.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_tooltip.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_popover.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_carousel.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_spinners.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_utilities.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_print.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_reboot.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_forms.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_custom-forms.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_navbar.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\plugins\\map-keys.js',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\plugins\\index.js',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\plugins\\logger.js',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\plugins\\escape-svg.js',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\plugins\\color.js',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\plugins\\color-yiq.js',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\plugins\\theme-color.js',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\plugins\\gray.js',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\plugins\\theme-color-level.js',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\plugins\\valid-calc.js',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\_variables.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\vendor\\_rfs.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_deprecate.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_breakpoints.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_hover.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_badge.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_image.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_resize.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_screen-reader.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_size.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_reset-text.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_text-emphasis.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_text-hide.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_text-truncate.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_visibility.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_alert.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_buttons.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_caret.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_pagination.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_lists.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_list-group.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_nav-divider.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_forms.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_table-row.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_background-variant.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_border-radius.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_box-shadow.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_gradients.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_transition.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_clearfix.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_grid-framework.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_grid.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\mixins\\_float.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\utilities\\_align.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\utilities\\_background.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\utilities\\_borders.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\utilities\\_clearfix.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\utilities\\_display.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\utilities\\_embed.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\utilities\\_flex.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\utilities\\_float.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\utilities\\_overflow.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\utilities\\_screenreaders.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\utilities\\_position.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\utilities\\_sizing.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\utilities\\_shadows.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\utilities\\_stretched-link.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\utilities\\_spacing.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\utilities\\_visibility.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\utilities\\_text.less',
'C:\\Users\\IEUser\\test-webpack-watch\\node_modules\\bootstrap-less-port\\less\\plugins\\breakpoints.js' ]
Looks on the first item, here forward slashes on windows. We need report about it, anyway I will fix it on our side too
Reported issue - https://github.com/less/less.js/issues/3516
When using
@import '~xxx'
to resolve a module path to a less filewebpack --watch
will always include it in subsequent rebuilds despite the file not being changed. This behavior doesn't occur when going to node modules directly, for instance@import '../node_modules/xxx'
.Expected Behavior
When using
@import '~bootstrap-less-port/less/bootstrap.less';
andwebpack --watch
, less files aren't rebuilt when updating unrelated files.Actual Behavior
When using
@import '~bootstrap-less-port/less/bootstrap.less';
andwebpack --watch
, less files are rebuilt when updating unrelated files.Code
https://github.com/Kukkimonsuta/test-webpack-watch/blob/master/webpack.config.js https://github.com/Kukkimonsuta/test-webpack-watch/blob/master/src/styles.less
How Do We Reproduce?
Clone repository https://github.com/Kukkimonsuta/test-webpack-watch Run
npm i
Runwebpack --watch --progress --mode development
Editsrc/index.js
Watchsrc/styles.less
being rebuilt