@@ -64,10 +64,6 @@ module Fable =
64
64
| Watch
65
65
| Clean
66
66
67
- type Webpack =
68
- | WithoutWebpack
69
- | WithWebpack of args : string option
70
-
71
67
type Args =
72
68
{ Command: Command
73
69
Debug: bool
@@ -76,8 +72,7 @@ module Fable =
76
72
OutDir: string option
77
73
Defines: string list
78
74
SourceMaps: bool
79
- AdditionalFableArgs: string option
80
- Webpack: Webpack }
75
+ AdditionalFableArgs: string option }
81
76
82
77
let DefaultArgs =
83
78
{ Command = Build
@@ -87,8 +82,7 @@ module Fable =
87
82
OutDir = Some " ./out"
88
83
Defines = []
89
84
AdditionalFableArgs = None
90
- SourceMaps = true
91
- Webpack = WithoutWebpack }
85
+ SourceMaps = true }
92
86
93
87
let private mkArgs args =
94
88
let fableCmd =
@@ -123,30 +117,11 @@ module Fable =
123
117
124
118
let fableAdditionalArgs = args.AdditionalFableArgs |> Option.defaultValue " "
125
119
126
- let webpackCmd =
127
- match args.Webpack with
128
- | WithoutWebpack -> " "
129
- | WithWebpack webpackArgs ->
130
- sprintf
131
- " --%s webpack %s %s %s "
132
- ( match args.Command with
133
- | Watch -> " runWatch"
134
- | _ -> " run" )
135
- ( if args.Debug then
136
- " --mode=development"
137
- else
138
- " --mode=production" )
139
- ( if args.Experimental then
140
- " --env.ionideExperimental"
141
- else
142
- " " )
143
- ( webpackArgs |> Option.defaultValue " " )
144
-
145
120
let sourceMaps = if args.SourceMaps then " -s" else " "
146
121
147
- // $"{fableCmd} {fableProjPath} {sourcemaps} {fableOutDir} {fableDebug} {fableExperimental} {fableDefines} {fableAdditionalArgs} {webpackCmd} "
122
+ // $"{fableCmd} {fableProjPath} {sourcemaps} {fableOutDir} {fableDebug} {fableExperimental} {fableDefines} {fableAdditionalArgs}"
148
123
sprintf
149
- " %s %s %s %s %s %s %s %s %s "
124
+ " %s %s %s %s %s %s %s %s "
150
125
fableCmd
151
126
fableProjPath
152
127
sourceMaps
@@ -155,7 +130,6 @@ module Fable =
155
130
fableExperimental
156
131
fableDefines
157
132
fableAdditionalArgs
158
- webpackCmd
159
133
160
134
let run args =
161
135
let cmd = mkArgs args
@@ -298,8 +272,7 @@ let initTargets () =
298
272
Fable.run
299
273
{ Fable.DefaultArgs with
300
274
Command = Fable.Watch
301
- Debug = true
302
- Webpack = Fable.WithoutWebpack })
275
+ Debug = true })
303
276
304
277
Target.create " InstallVSCE" ( fun _ ->
305
278
Process.killAllByName " npm"
@@ -313,17 +286,15 @@ let initTargets () =
313
286
Fable.run
314
287
{ Fable.DefaultArgs with
315
288
Command = Fable.Build
316
- Debug = false
317
- Webpack = Fable.WithoutWebpack })
289
+ Debug = false })
318
290
319
291
Target.create " Bundle" ( fun _ -> Yarn.exec " run bundle" id)
320
292
321
293
Target.create " RunDevScript" ( fun _ ->
322
294
Fable.run
323
295
{ Fable.DefaultArgs with
324
296
Command = Fable.Build
325
- Debug = true
326
- Webpack = Fable.WithoutWebpack })
297
+ Debug = true })
327
298
328
299
329
300
Target.create " CopyFSACNetcore" ( fun _ ->
0 commit comments