From 688802b79294174a18ce302e6704ed839368d31c Mon Sep 17 00:00:00 2001 From: Thomas Klemm Date: Thu, 5 Nov 2020 15:14:25 +0200 Subject: [PATCH] Fix Rails Integration docs: Missing module export statement (#263) Thanks for this great library @claviska! Tried adding Shoelace to a Rails app w/ the current guide. When starting the Webpack Dev Server, the following error gets thrown: ``` .../RailsApplication/config/webpack/development.js:5 module.exports = environment.toWebpackConfig() ``` Adding `module.exports = environment` as done [here in the example repo](https://github.com/ParamagicDev/rails-shoelace-example/blob/4114da0e14e7276718df5091f28be7a96513144b/config/webpack/environment.js#L20) fixes the issue and allows Webpack to compile. --- docs/tutorials/integrating-with-rails.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/tutorials/integrating-with-rails.md b/docs/tutorials/integrating-with-rails.md index f3506cde7..890e4f793 100644 --- a/docs/tutorials/integrating-with-rails.md +++ b/docs/tutorials/integrating-with-rails.md @@ -69,6 +69,8 @@ environment.plugins.append( ] }) ) + +module.exports = environment ``` ### Adding Pack Tags