File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ export interface VueLoaderOptions {
21
21
compiler ?: TemplateCompiler
22
22
compilerOptions ?: CompilerOptions
23
23
hotReload ?: boolean
24
- productionMode ?: boolean
25
24
cacheDirectory ?: string
26
25
cacheIdentifier ?: string
27
26
exposeFilename ?: boolean
@@ -52,8 +51,8 @@ const loader: webpack.loader.Loader = function(source) {
52
51
loaderUtils . stringifyRequest ( loaderContext , r )
53
52
54
53
const {
54
+ mode,
55
55
target,
56
- minimize,
57
56
sourceMap,
58
57
rootContext,
59
58
resourcePath,
@@ -67,8 +66,7 @@ const loader: webpack.loader.Loader = function(source) {
67
66
{ } ) as VueLoaderOptions
68
67
69
68
const isServer = target === 'node'
70
- const isProduction =
71
- options . productionMode || minimize || process . env . NODE_ENV === 'production'
69
+ const isProduction = mode === 'production'
72
70
73
71
const descriptor = parse ( String ( source ) , {
74
72
filename : resourcePath ,
You can’t perform that action at this time.
0 commit comments