We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0d59a6 commit 7d07144Copy full SHA for 7d07144
Rakefile
@@ -32,3 +32,29 @@ require 'rake/testtask'
32
# end
33
#
34
# task default: :test
35
+
36
+task :webpack => 'webpack:build'
37
38
+namespace :webpack do
39
+ task :build => ['build:development', 'build:production']
40
41
+ namespace :build do
42
+ task :development => 'yarn:install' do
43
+ sh "cd builder && bin/webpack"
44
+ end
45
+ task :production => 'yarn:install' do
46
+ sh "cd builder && rake webpacker:compile"
47
48
49
50
+ task :watch => 'yarn:install' do
51
+ sh "cd builder && bin/webpack --watch"
52
53
54
+ namespace :yarn do
55
+ task :install do
56
+ sh "yarn install && cd builder && yarn install"
57
58
59
+end
60
0 commit comments