0
我的目錄看起來像這樣如何從咕嚕加載.htaccess文件
Project
-- dev
-- .htaccess
-- .index.php
-- dist
Gruntfile.js
node_modules
package.json
我嘗試使用咕嚕,然而這是工作,我想也是的.htaccess文件持久的PHP服務器,但Grunt不會承認它。
目前我的PHP文件看起來像這樣:
php: {
watch: {
css: {
files: ['dev/styles/**/*.scss'],
tasks: ['sass:dev']
},
scripts: {
files: 'dev/scripts/javascript/*.js',
tasks: ['jshint', 'uglify']
}
},
options: {
keepalive: true,
open: true,
base: 'dev',
port: 8000,
router: '.htaccess'
}
}
一旦PHP服務器打開出現以下錯誤:
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
Fatal error: Unknown: Failed opening required '.htaccess' (include_path='.;C:\php\pear') in Unknown on line 0