【发布时间】:2017-09-04 14:12:07
【问题描述】:
我正在使用 React_on_rails,在克隆了他们的示例后,我无法让它与 webpacker_lite 一起使用。当我运行开发服务器时,出现此错误:
`WebpackerLite::FileLoader::NotFoundError in Pages#index
WebpackerLite can't find the manifest file: /FILE PATH/react-webpack-rails-tutorial/public/webpack/development/manifest.json
Possible causes:
1. You have not invoked webpack.
2. You have misconfigured WebpackerLite's config/webpacker_lite.yml file.
3. Your Webpack configuration is not creating a manifest.
`
我已经安装了 webpack-manifest-plugin 并添加了:
var ManifestPlugin = require('webpack-manifest-plugin');
module.exports = {
// ...
plugins: [
new ManifestPlugin()
]
};
webpack-manifest-plugin 的文档说这会生成一个 manifest.json,但它看起来不像。
【问题讨论】:
标签: ruby-on-rails reactjs webpack