Comments (2)
I'm having the same issue right now.
How did you convert the paths in doLast so they won't be handled like an uri?
from kotlin-frontend-plugin.
doLast {
File sourceMap = new File('./frontend/build/js/frontend.js.map')
sourceMap.write(sourceMap.getText('UTF-8').replaceAll('file://', 'file:///'), 'UTF-8')
}
I could make it work with any configuration of sourceMap files, but really, I didn't need to as it's temporary solution.
Also, it's windows-only issue I think, so you could use ubuntu-bash on windows 10 or linux OS.
Also, small warning: Default web server, that supports source maps, isn't save. At all. It allows directory traversal attack, and actually, this isn't bug at all: this is how it works and supposed to be working. Just DON'T use it in production. This should be stated in README, or somewhere, but it's not. All what readme say's is "dev server", and nothing else. So, just don't use included dev server on open ports.
from kotlin-frontend-plugin.
Related Issues (20)
- Doesn't handle npm dependencies of dependent project HOT 1
- New MPP: Add example how to run js/karma tests
- Error when using org.jetbrains.kotlin.frontend 0.0.44 with gradle 5.1.1 HOT 3
- HMR not working correctly with Kotlin >= 1.3.20 HOT 2
- webpack.config.d directory should be optional HOT 2
- Missing Gradle plugin ID inhibits usage in kotlin gradle scripts HOT 1
- Error: Cannot find module './build/WebPackHelper.js' HOT 1
- ERROR in Entry module not found: Error: Can't resolve 'new-mpp' in '/Users/clegge/Projects/kotlin-frontend-plugin/examples/new-mpp/build'
- Extension with name 'kotlin' does not exist HOT 3
- JQuery externals producing IOException with version 0.0.45 and gradle 5.2.1
- HMR stops working when using Gradle continuous build HOT 1
- Import a js module for its side effects only HOT 2
- are you not supporting the plugin anymore? HOT 6
- Support create-react-kotlin-app scripts
- Seems to be conflicting with new `kotlin("js")` plugin HOT 2
- Add a KotlinJS JAR as a NPM dependency
- missing org.jetbrains.kotlin.core....jar\bin' HOT 1
- error: Source option 6 is no longer supported. Use 7 or later. HOT 1
- [Error] NpmPackageManager$injectDependencies$1$1 overrides final method getBuildDependencies HOT 5
- build.gradle.kts with sourceSets in android project HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kotlin-frontend-plugin.