Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run dev编译完成, #2

Open
datangkang123 opened this issue May 25, 2020 · 1 comment
Open

npm run dev编译完成, #2

datangkang123 opened this issue May 25, 2020 · 1 comment

Comments

@datangkang123
Copy link

cd resources/dcat-page/应用目录
npm install
npm run dev

没有报错,但预览效果时,js和css静态文件全部404无法访问,文件已生成了。查看生成的引用链接是:域名/dcat-page/seach/resource/assets/gitalk/gitalk.min.js

@jqhph
Copy link
Owner

jqhph commented May 25, 2020

伪静态配置问题,注释掉类似下面的代码

#location ~ .*\.(js|css)?$ {
    #  expires 7d;
    #  access_log off;
    #}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants