You've edited your production.rb
file so that Rails will attempt to precompile all CSS/JS files (line 48).
By default Rails will only precompile application.css(.scss)
. By adding the wildcard selector to config.assets.precompile
you are asking Rails to precompile every css asset in your application, including Sass partials. Naturally, this is probably not the behaviour you wish for.
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
config.assets.precompile += %w( *.css *.js )
Rails will therefore iterate over each css asset, compiling them. It so happens that _accordion.css.scss
is the first Bootstrap asset it comes across, and Rails will attempt to compile that first. _accordion
isn't independent, and requires some files to be loaded before it, hence the error. It should never be compiled as a separate file anyway.
You need to change your config.assets.precompile
to add only the additional files that you need aside from application.css/application.js
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…