require.js text plugin adds “.js” to the file name

后端 未结 7 1048
旧时难觅i
旧时难觅i 2021-01-08 00:31

I\'m trying to work with requirejs and text plugin and I have weird problem.

I have two web servers:

  1. localhost:3000 - act as CDN and h
相关标签:
7条回答
  • 2021-01-08 01:07

    I ran into the same problem and the fix was to make sure the main.js file was loaded from the same domain as the *.htm files. When they differed, require would append the .js to the html files, resulting in 404s.

    0 讨论(0)
提交回复
热议问题