Skip to content

Commit

Permalink
JS, CSS 追加
Browse files Browse the repository at this point in the history
  • Loading branch information
kkeisuke committed Jun 28, 2018
1 parent f6f8b51 commit 1fc7384
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
@@ -0,0 +1 @@
import 'bootstrap/dist/css/bootstrap.min.css';
18 changes: 18 additions & 0 deletions static/main.css
@@ -0,0 +1,18 @@
.navbar {
margin-bottom: 5px;
}
h3 {
margin-bottom: 20px;
}
h4 {
margin-bottom: 10px;
}
h4 + p {
margin-bottom: 30px;
}
a {
word-wrap: break-word;
}
.pagination {
margin-bottom: 30px;
}
1 change: 1 addition & 0 deletions static/main.js

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions webpack.config.js
@@ -0,0 +1,26 @@
'use strict'

var path = require('path')

module.exports = {
module: {
rules: [
{
test: /\.js$/,
exclude: /(node_modules|static)/,
use: 'babel-loader'
},
{
test: /\.css$/,
use: [
'style-loader',
'css-loader'
]
}
]
},
output: {
path: path.resolve(__dirname, 'static')
},
mode: 'production'
}

0 comments on commit 1fc7384

Please sign in to comment.