moko-resources
moko-resources copied to clipboard
webpack.config.d/moko-resources-generated.js is generated with invalid path on Windows
This line should generate path literal "C:\\users\\example\\projects\\test" on Windows, but it generates "C:\users\example\projects\test".
why should be line with escaped ?
It leads to this line in generated js script const mokoResourcePath = path.resolve("C:\users\example\projects\test");. String literal is invalid because single \ is treated as escape character, but we need \ to be a part of a path so it must be repeated.
will be released in 0.21.0