Closed asial-matagawa closed 7 years ago
thank you @asial-matagawa ! We will test it and release a new version :)
@adamkozuch
Thank you, I did not know about loaders
...
They have been fixed now.
@asial-matagawa Thanks! Just one thing, path.sep
should contain the right separator for every platform, maybe you can use it as well.
I see, I will use path.sep
as needed. Thank you!
@adamkozuch @andipavllo (Cc: @frandiox @masahirotanaka @keijiodagawa ) This PR fixes monaca/monaca-cli#83 and OnsenUI/OnsenUI#2037.
The current webpack settings have the following line,
but this works only on Linux/macOS since
/\/onsen-css-components.css$/
contains a platform-dependent path delimiter/
. In Windows, users will have a path likeC:\Users\Foo\Documents\node_modules\onsenui\css-components-src\src\onsen-css-components.css
but it does not match/\/onsen-css-components.css$/
. To prevent this, we have to usepath.join('foo', 'bar')
which uses/
on Linux/macOS and\
on Windows.I tested the new webpack settings which this PR provides and they worked fine on both macOS and Windows. Could you merge this and release new versions of
monaca-lib
, Monaca CLI and Monaca Localkit?