cost 65 ms
约曼,grunt-requirejs网站无法在构建后运行 - yeoman, grunt-requirejs site does not work after build

在我运行了grunt任务后,我用localhost运行了我的网站,但是它不起作用。 似乎grunt-requirejs不能按我期望的那样正常工作,它不包括对脚本文件的依赖性。 有人可以查看我的文件,并向我展示grunt-requirejs配置的问题吗? 我的index.html无法加载ve ...

错误:使用r.js / grunt-requirejs缺少“out”或“dir”配置值 - Error: Missing either an “out” or “dir” config value with r.js / grunt-requirejs

下面是我的构建配置文件:build.js 我正在使用“ grunt-requirejs”:“〜0.4.2”作为我的构建npm和Gruntfile requirejs配置+ r.js 2.1.16: 每当我尝试执行grunt requirejs时,它在我的控制台上抛出以下错误: ...

为什么我必须在grunt-requirejs中再次使用'include'来优化成单个js文件? - Why I have to use 'include' again in grunt-requirejs to optimize into a single js file?

我正在尝试使用grunt-requirejs将我的requirejs项目优化为单个生产js文件。 但是,我不确定我的Gruntfile.js是否正确,因为我必须再次指定在优化过程中要包括的模型,这对我来说似乎是错误的,因为我已经指定了mainConfigFile。 我以为它将从我的requi ...

如何使用yeoman,grunt,usemin 2和requirejs? - How to use yeoman, grunt, usemin 2 and requirejs?

我正试着用Grunt,usemin 2,requirejs和uglify来解决问题。 我在构建中观察到的是,requirejs没有将我的依赖项正确地包含在我的单个连接构建文件中。 当我从/ dist运行index.html时,我在查找'jquery','app'和某些第三方js文件或有时“定 ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM