Skip to content

Commit

Permalink
Merge pull request #9704 from Seunghyum/next
Browse files Browse the repository at this point in the history
fix: webpack config when excute 'yarn workspace vue-example dev'
  • Loading branch information
ndelangen authored Mar 16, 2020
2 parents d8dd653 + 7685636 commit 7335d31
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
1 change: 1 addition & 0 deletions examples/vue-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"prop-types": "^15.7.2",
"svg-url-loader": "^3.0.2",
"vue-loader": "^15.7.0",
"vue-style-loader": "^4.1.2",
"webpack": "^4.33.0",
"webpack-dev-server": "^3.8.2"
},
Expand Down
28 changes: 24 additions & 4 deletions examples/vue-kitchen-sink/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,15 @@ module.exports = {
},
{
test: /\.(png|jpg|gif)$/,
loader: 'file-loader',
options: {
name: '[name].[ext]?[hash]',
},
use: [
{
loader: 'url-loader',
options: {
esModule: false,
fallback: 'file-loader',
},
},
],
},
{
test: /\.svg$/,
Expand All @@ -45,6 +50,21 @@ module.exports = {
include: [path.resolve(__dirname, '../stories')],
enforce: 'pre',
},
{
test: /\.css$/,
use: [
'vue-style-loader',
{
loader: 'css-loader',
options: {
// enable CSS Modules
modules: true,
// customize generated class names
localIdentName: '[local]_[hash:base64:8]',
},
},
],
},
],
},
resolve: {
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -30503,7 +30503,7 @@ [email protected]:
dependencies:
vue-class-component "^7.1.0"

vue-style-loader@^4.1.0:
vue-style-loader@^4.1.0, vue-style-loader@^4.1.2:
version "4.1.2"
resolved "https://registry.yarnpkg.com/vue-style-loader/-/vue-style-loader-4.1.2.tgz#dedf349806f25ceb4e64f3ad7c0a44fba735fcf8"
integrity sha512-0ip8ge6Gzz/Bk0iHovU9XAUQaFt/G2B61bnWa2tCcqqdgfHs1lF9xXorFbE55Gmy92okFT+8bfmySuUOu13vxQ==
Expand Down

0 comments on commit 7335d31

Please sign in to comment.