Skip to content

Commit 14d3b5d

Browse files
author
bootstrap-vue-bot
committed
remove extra loaders
1 parent 4cc7e47 commit 14d3b5d

File tree

1 file changed

+0
-59
lines changed

1 file changed

+0
-59
lines changed

scripts/webpack.js

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,6 @@ config.output = {
3434
filename: 'bootstrap-vue.js'
3535
};
3636

37-
// Plugins
38-
config.plugins = [
39-
new Webpack.DefinePlugin({
40-
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
41-
})
42-
];
43-
4437
// Config Module Loaders
4538
config.module = {
4639

@@ -50,68 +43,16 @@ config.module = {
5043
test: /\.vue$/,
5144
loader: 'vue-loader'
5245
},
53-
// Vue HTML
54-
{
55-
test: /\.html$/,
56-
loader: 'vue-html-loader'
57-
},
5846
// JS
5947
{
6048
test: /\.js$/,
6149
loader: 'babel-loader',
6250
// important: exclude files in node_modules, otherwise it's going to be really slow!
6351
exclude: /node_modules|vendor/
64-
},
65-
// JSON
66-
{
67-
test: /\.json$/,
68-
loader: 'json-loader'
69-
},
70-
// CSS
71-
{
72-
test: /\.css$/,
73-
loader: 'vue-style-loader!css-loader'
74-
},
75-
// SCSS
76-
{
77-
test: /\.scss$/,
78-
loader: 'vue-style-loader!sass-loader'
79-
},
80-
// Font
81-
{
82-
test: /\.(eot|svg|ttf|woff|woff2)$/,
83-
loader: 'file'
84-
},
85-
// Media
86-
{
87-
test: /\.(png|jpg|gif|svg)$/,
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: /\.node$/,
99-
loader: 'node-loader'
10052
}
10153
]
10254
};
10355

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-
11556
if (process.env.NODE_ENV === 'production') {
11657
// Production Config
11758
config.devtool = '#source-map';

0 commit comments

Comments
 (0)