Sha256: aabf4a71e26ce4993b95ac034e37029b6ee8e40d4965c65f6396fe7cd074956a
Contents?: true
Size: 487 Bytes
Versions: 1
Compression:
Stored size: 487 Bytes
Contents
say "Install Webpack with config" copy_file "#{__dir__}/webpack.config.js", "webpack.config.js" run "yarn add webpack webpack-cli" say "Add build script" build_script = "webpack --config webpack.config.js" case `npx -v`.to_f when 7.1...8.0 run %(npm set-script build "#{build_script}") run %(yarn build) when 8.0.. run %(npm pkg set scripts.build="#{build_script}") run %(yarn build) else say %(Add "scripts": { "build": "#{build_script}" } to your package.json), :green end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jsbundling-rails-1.1.0 | lib/install/webpack/install.rb |