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

后端 未结 7 1070
旧时难觅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 00:55

    I've hacked at every solution I've seen posted on the internet aside from running r.js optimizer and compiling my templates into .js file.

    A temporary work around is to put your templates in the same directory as your index.html file. This of course doesn't solve the problem but if you are at a standstill like I was, then this will at least get you moving again.

提交回复
热议问题