ソースを参照

Add vue style loader

master
Ray Burgemeestre 6年前
コミット
8262a0c7c9
3個のファイルの変更16行の追加2行の削除
  1. +3
    -0
      README.md
  2. +12
    -1
      src/App.vue
  3. +1
    -1
      webpack.config.js

+ 3
- 0
README.md ファイルの表示

@@ -6,3 +6,6 @@ https://bulma.io/documentation/customize/with-webpack/

For vuejs:
https://itnext.io/vuejs-and-webpack-4-from-scratch-part-1-94c9c28a534a

For devserver:
https://itnext.io/vue-js-and-webpack-4-from-scratch-part-2-5038cc9deffb

+ 12
- 1
src/App.vue ファイルの表示

@@ -1,6 +1,17 @@
<template>
<div>
<div class="full-width center-content">
<h1>Hello World wWohoo!</h1>
</div>
</template>

<style scoped>
.full-width {
width: 100%;
}
.center-content {
display: flex;
justify-content: center;
align-items: center;
}
</style>


+ 1
- 1
webpack.config.js ファイルの表示

@@ -34,7 +34,7 @@ module.exports = {
},
{
test: /\.css$/,
use: ['style-loader', 'css-loader']
use: ['vue-style-loader', 'style-loader', 'css-loader']
},
{
test: /\.vue$/,

読み込み中…
キャンセル
保存