Symfony Encore/Webpack 永远不会完成

Symfony Encore/Webpack never completes

任何时候我尝试 运行 加演,它都没有完成并挂在...

$ /vagrant/app/node_modules/.bin/encore dev
Running webpack ...

我已经删除 node_modules 并按照 Symfony 文档重新安装了很多次。尝试仅使用 npm,也尝试仅使用 yarn。任何建议将不胜感激。我已经包括了 package.jsonwebpack.config.js,如果还有任何其他问题需要帮助解决问题,请告诉我。

package.json

{
  "devDependencies": {
    "@symfony/webpack-encore": "^0.20.1",
    "node-sass": "^4.9.0",
    "sass-loader": "^7.0.3"
  }
}

webpack.config.js

var Encore = require('@symfony/webpack-encore');

Encore
    // the project directory where compiled assets will be stored
    .setOutputPath('public/build/')
    // the public path used by the web server to access the previous directory
    .setPublicPath('/app/build')
    .setManifestKeyPrefix('build')
    .cleanupOutputBeforeBuild()
    .enableSourceMaps(!Encore.isProduction())
    // uncomment if you use Sass/SCSS files
    .enableSassLoader()
    // uncomment to create hashed filenames (e.g. app.abc123.css)
    // .enableVersioning(Encore.isProduction())

    // uncomment to define the assets of the project
    // .addEntry('js/app', './assets/js/app.js')
    .addStyleEntry('css/style', './assets/sass/style.scss')
    // .addStyleEntry('css/print', './assets/sass/print.scss')


    // uncomment for legacy applications that require $/jQuery as a global variable
    // .autoProvidejQuery()
;

module.exports = Encore.getWebpackConfig();

我想通了这个问题。我不得不在我的 sass 加载程序选项中禁用 resolveUrlLoader

.enableSassLoader(function(options) {}, {
    resolveUrlLoader: false
})