Sha256: 64759b723c4c9850c6511b499335dd8d5711231de4cfa82db8f15b2acc61e126
Contents?: true
Size: 411 Bytes
Versions: 5
Compression:
Stored size: 411 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" if (`npx -v`.to_f < 7.1 rescue "Missing") say %(Add "scripts": { "build": "#{build_script}" } to your package.json), :green else run %(npm set-script build "#{build_script}") run %(yarn build) end
Version data entries
5 entries across 5 versions & 1 rubygems