-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Suggest to support LiveScript #11
Comments
You are having troubles using LiveScript outside Vue? I did encounter a problem with LS but it's inside Vue. I'm using source = source.replace(/[\/]{2}/g, '#'); It seems that And could you please post your error messages? |
I'm having no issues when using LiveScript outside of a Vue component file. Were you sure to install the Steps I took to get this working:
{
test: /\.ls$/,
loader: 'livescript-loader'
} Then made a console.log 'hello world' And imported import './test.ls' Lastly, I started the app with |
@roosephu After manually fixing <script lang="livescript">
module.exports =
data: !->
return { foo: 'bar' }
</script> |
@SimulatedGREG Thanks! When I take a closer look at |
Thank you very much! @SimulatedGREG @roosephu import abc from 'store.ls' When we have store.ls only, we do not need to indicate .ls. Just import/require! store Less projects are using LiveScript and JavaScript at the same. Never see import abc from 'store.ls' Now I got it. Thank you very much! |
Glad to hear everything is working for you now. If you don't want to keep adding |
Dear @SimulatedGREG
Thank you very much! This project help me a lot! But I partially failed when I add LiveScript. It is easy to use LiveScript inside Vue's component, but outside. I have tried for a long time but never found a similar solution. Could not understand why adding this snippet in webpack.config.js does not work. @roosephu would you like to share more knowledge on this issue? Thanks.
The text was updated successfully, but these errors were encountered: