File tree 1 file changed +0
-59
lines changed 1 file changed +0
-59
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,6 @@ config.output = {
34
34
filename : 'bootstrap-vue.js'
35
35
} ;
36
36
37
- // Plugins
38
- config . plugins = [
39
- new Webpack . DefinePlugin ( {
40
- 'process.env.NODE_ENV' : JSON . stringify ( process . env . NODE_ENV )
41
- } )
42
- ] ;
43
-
44
37
// Config Module Loaders
45
38
config . module = {
46
39
@@ -50,68 +43,16 @@ config.module = {
50
43
test : / \. v u e $ / ,
51
44
loader : 'vue-loader'
52
45
} ,
53
- // Vue HTML
54
- {
55
- test : / \. h t m l $ / ,
56
- loader : 'vue-html-loader'
57
- } ,
58
46
// JS
59
47
{
60
48
test : / \. j s $ / ,
61
49
loader : 'babel-loader' ,
62
50
// important: exclude files in node_modules, otherwise it's going to be really slow!
63
51
exclude : / n o d e _ m o d u l e s | v e n d o r /
64
- } ,
65
- // JSON
66
- {
67
- test : / \. j s o n $ / ,
68
- loader : 'json-loader'
69
- } ,
70
- // CSS
71
- {
72
- test : / \. c s s $ / ,
73
- loader : 'vue-style-loader!css-loader'
74
- } ,
75
- // SCSS
76
- {
77
- test : / \. s c s s $ / ,
78
- loader : 'vue-style-loader!sass-loader'
79
- } ,
80
- // Font
81
- {
82
- test : / \. ( e o t | s v g | t t f | w o f f | w o f f 2 ) $ / ,
83
- loader : 'file'
84
- } ,
85
- // Media
86
- {
87
- test : / \. ( p n g | j p g | g i f | s v g ) $ / ,
88
- loader : 'url' ,
89
- query : {
90
- // limit for base64 inlining in bytes
91
- limit : 10000 ,
92
- // custom naming format if file is larger than the threshold
93
- name : '[name].[ext]?[hash]'
94
- }
95
- } ,
96
- // Node
97
- {
98
- test : / \. n o d e $ / ,
99
- loader : 'node-loader'
100
52
}
101
53
]
102
54
} ;
103
55
104
- // Config Vue style loader
105
- config . plugins . push ( new Webpack . LoaderOptionsPlugin ( {
106
- options : {
107
- vue : {
108
- loaders : {
109
- scss : 'css-loader!sass-loader' // This will match all <style lang=scss> tags
110
- }
111
- }
112
- }
113
- } ) ) ;
114
-
115
56
if ( process . env . NODE_ENV === 'production' ) {
116
57
// Production Config
117
58
config . devtool = '#source-map' ;
You can’t perform that action at this time.
0 commit comments