Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fd68941

Browse files
css reset
1 parent ef963d7 commit fd68941

File tree

4 files changed

+21
-7
lines changed

4 files changed

+21
-7
lines changed

‎build/webpack.dev.conf.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ var merge = require('webpack-merge')
55
var baseWebpackConfig = require('./webpack.base.conf')
66
var HtmlWebpackPlugin = require('html-webpack-plugin')
77
var FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
8+
var BrowserSyncPlugin = require('browser-sync-webpack-plugin');
89

910
// add hot-reload related code to entry chunks
1011
Object.keys(baseWebpackConfig.entry).forEach(function (name) {
@@ -30,6 +31,14 @@ module.exports = merge(baseWebpackConfig, {
3031
template: 'index.html',
3132
inject: true
3233
}),
33-
new FriendlyErrorsPlugin()
34+
new FriendlyErrorsPlugin(),
35+
new BrowserSyncPlugin({
36+
// browse to http://localhost:3000/ during development,
37+
// ./public directory is being served
38+
host: 'localhost',
39+
port: 3000,
40+
// server: { baseDir: ['public'] },
41+
proxy: 'http://localhost:8080/'
42+
})
3443
]
3544
})

‎package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
"babel-preset-env": "^1.3.2",
2323
"babel-preset-stage-2": "^6.22.0",
2424
"babel-register": "^6.22.0",
25+
"browser-sync": "^2.18.8",
26+
"browser-sync-webpack-plugin": "^1.1.4",
2527
"chalk": "^1.1.3",
2628
"connect-history-api-fallback": "^1.3.0",
2729
"copy-webpack-plugin": "^4.0.1",

‎src/App.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@
6464
code {
6565
font-family: Menlo, Monaco, Andale Mono, Ubuntu Mono, monospace !important;
6666
font-size: .95em;
67+
@media (max-width: 767px) {
68+
font-size: .85em;
69+
}
6770
}
6871
6972
pre.language-js {
@@ -120,6 +123,8 @@
120123
background-image: url("./assets/sky.jpg");
121124
background-size: cover;
122125
position: absolute;
126+
top: 0;
127+
left: 0;
123128
width: 100%;
124129
height: 100%;
125130
}

‎src/main.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
// The Vue build version to load with the `import` command
22
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
3+
import 'normalize.css/normalize.css'
4+
import 'prismjs/themes/prism.css'
5+
import 'prismjs/themes/prism-okaidia.css'
6+
37
import Vue from 'vue'
48
import App from './App'
59

610
import VueParticles from './vue-particles'
711
import VuePrism from 'vue-prism'
812
Vue.use(VueParticles, VuePrism)
913

10-
import 'milligram/dist/milligram.min.css'
11-
// import 'normalize.css/normalize.css'
12-
// import 'bootstrap-grid-only/bootstrap.css'
13-
import 'prismjs/themes/prism.css'
14-
import 'prismjs/themes/prism-okaidia.css'
15-
1614
Vue.config.productionTip = false
1715

1816
/* eslint-disable no-new */

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /