Skip to content

Commit 8c92395

Browse files
committed
chore: fix vue examples
1 parent 7621de5 commit 8c92395

File tree

3 files changed

+15
-36
lines changed

3 files changed

+15
-36
lines changed

examples/vue-cssextract/src/App.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="panel-container">
2+
<div class="panel-container foobar">
33
<welcome :exampleName="exampleName" :statusMessage="statusMessage" :logoData="logoData" />
44
<clicks />
55
</div>
@@ -30,3 +30,9 @@
3030
}
3131
}
3232
</script>
33+
34+
<style scoped>
35+
.foobar {
36+
font-family: monospace
37+
}
38+
</style>

examples/vue-cssextract/webpack.config.js

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,19 @@ module.exports = {
1919
use: BabelMultiTargetPlugin.loader(),
2020
}, {
2121
test: /\.vue$/,
22-
use: [
23-
BabelMultiTargetPlugin.loader('vue-loader'),
24-
],
22+
use: BabelMultiTargetPlugin.loader('vue-loader'),
2523
},
2624
{
2725
test: /\.css$/,
2826
use: [
29-
MiniCssExtractPlugin.loader,
27+
{
28+
loader: MiniCssExtractPlugin.loader,
29+
options: {
30+
esModule: false,
31+
},
32+
},
3033
'css-loader',
3134
],
3235
}],
3336
},
34-
35-
node: {
36-
// prevent webpack from injecting useless setImmediate polyfill because Vue
37-
// source contains it (although only uses it if it's native).
38-
setImmediate: false,
39-
// prevent webpack from injecting mocks to Node native modules
40-
// that does not make sense for the client
41-
dgram: 'empty',
42-
fs: 'empty',
43-
net: 'empty',
44-
tls: 'empty',
45-
// eslint-disable-next-line camelcase
46-
child_process: 'empty',
47-
},
4837
}

examples/vue-dynamic-import/webpack.config.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ module.exports = {
2525
},
2626
{
2727
test: /\.vue$/,
28-
use: [
29-
BabelMultiTargetPlugin.loader('vue-loader'),
30-
],
28+
use: BabelMultiTargetPlugin.loader('vue-loader'),
3129
},
3230
{
3331
test: /\.css$/,
@@ -38,18 +36,4 @@ module.exports = {
3836
},
3937
],
4038
},
41-
42-
node: {
43-
// prevent webpack from injecting useless setImmediate polyfill because Vue
44-
// source contains it (although only uses it if it's native).
45-
setImmediate: false,
46-
// prevent webpack from injecting mocks to Node native modules
47-
// that does not make sense for the client
48-
dgram: 'empty',
49-
fs: 'empty',
50-
net: 'empty',
51-
tls: 'empty',
52-
// eslint-disable-next-line camelcase
53-
child_process: 'empty',
54-
},
5539
}

0 commit comments

Comments
 (0)