我正在将从我的getbootsrap.com购买的主题安装到我的Symfony 4 Web应用程序中。我将css文件复制到资产/ css,并将它们作为条目添加到我的webpack.config.js中,但是我收到以下错误消息:
yarn run encore dev
yarn run v1.7.0
$ /home/vagrant/code/node_modules/.bin/encore dev
Running webpack ...
ERROR Failed to compile with 9 errors
12:40:57
These relative modules were not found:
* ../fonts/entypo.eot?79395234 in ./node_modules/css-loader??ref--1-2!./assets/css/entypo.css
* ../fonts/entypo.svg?79395234 in ./node_modules/css-loader??ref--1-2!./assets/css/entypo.css
* ../fonts/entypo.ttf?79395234 in ./node_modules/css-loader??ref--1-2!./assets/css/entypo.css
* ../fonts/entypo.woff2?79395234 in ./node_modules/css-loader??ref--1-2!./assets/css/entypo.css
* ../fonts/entypo.woff?79395234 in ./node_modules/css-loader??ref--1-2!./assets/css/entypo.css
* ../fonts/socicon.eot?a93r5t in ./node_modules/css-loader??ref--1-2!./assets/css/socicon.css
* ../fonts/socicon.svg?a93r5t in ./node_modules/css-loader??ref--1-2!./assets/css/socicon.css
* ../fonts/socicon.ttf?a93r5t in ./node_modules/css-loader??ref--1-2!./assets/css/socicon.css
* ../fonts/socicon.woff?a93r5t in ./node_modules/css-loader??ref--1-2!./assets/css/socicon.css
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
这是我的webpack.config.js条目:
.addStyleEntry('css/app', [
'./node_modules/bootstrap/dist/css/bootstrap.min.css',
'./assets/css/theme.css',
'./assets/css/entypo.css',
'./assets/css/socicon.css',
])