Skip to content

Commit

Permalink
chore: fix vue examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Austaras committed Jan 3, 2021
1 parent 7621de5 commit 26e4d94
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 35 deletions.
8 changes: 7 additions & 1 deletion examples/vue-cssextract/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="panel-container">
<div class="panel-container foobar">
<welcome :exampleName="exampleName" :statusMessage="statusMessage" :logoData="logoData" />
<clicks />
</div>
Expand Down Expand Up @@ -30,3 +30,9 @@
}
}
</script>

<style scoped>
.foobar {
font-family: mono
}
</style>
18 changes: 1 addition & 17 deletions examples/vue-cssextract/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ module.exports = {
use: BabelMultiTargetPlugin.loader(),
}, {
test: /\.vue$/,
use: [
BabelMultiTargetPlugin.loader('vue-loader'),
],
use: BabelMultiTargetPlugin.loader('vue-loader'),
},
{
test: /\.css$/,
Expand All @@ -31,18 +29,4 @@ module.exports = {
],
}],
},

node: {
// prevent webpack from injecting useless setImmediate polyfill because Vue
// source contains it (although only uses it if it's native).
setImmediate: false,
// prevent webpack from injecting mocks to Node native modules
// that does not make sense for the client
dgram: 'empty',
fs: 'empty',
net: 'empty',
tls: 'empty',
// eslint-disable-next-line camelcase
child_process: 'empty',
},
}
18 changes: 1 addition & 17 deletions examples/vue-dynamic-import/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ module.exports = {
},
{
test: /\.vue$/,
use: [
BabelMultiTargetPlugin.loader('vue-loader'),
],
use: BabelMultiTargetPlugin.loader('vue-loader'),
},
{
test: /\.css$/,
Expand All @@ -38,18 +36,4 @@ module.exports = {
},
],
},

node: {
// prevent webpack from injecting useless setImmediate polyfill because Vue
// source contains it (although only uses it if it's native).
setImmediate: false,
// prevent webpack from injecting mocks to Node native modules
// that does not make sense for the client
dgram: 'empty',
fs: 'empty',
net: 'empty',
tls: 'empty',
// eslint-disable-next-line camelcase
child_process: 'empty',
},
}
1 change: 1 addition & 0 deletions examples/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ module.exports = (workingDir, examples, options = {}) => ({
rules: [
{
test: /\.html$/,
enforce: 'post',
loader: 'html-loader',
},
{
Expand Down

0 comments on commit 26e4d94

Please sign in to comment.