Skip to content

Commit c9d247f

Browse files
committed
fix version selector #240
1 parent 40cafc1 commit c9d247f

File tree

10 files changed

+18
-82
lines changed

10 files changed

+18
-82
lines changed

build/webpack/base.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import path from 'path';
22
import webpack from 'webpack';
3-
import autoprefixer from 'autoprefixer';
43
import eslintFormatter from 'eslint-friendly-formatter';
54
import config from '../config';
65

@@ -87,12 +86,7 @@ export default {
8786
loaders: {
8887
css: 'vue-style-loader!css-loader',
8988
scss: 'vue-style-loader!css-loader!sass-loader'
90-
},
91-
postcss: [
92-
autoprefixer({
93-
browsers: ['last 2 versions']
94-
})
95-
]
89+
}
9690
},
9791
plugins: [
9892
new webpack.DefinePlugin({

build/webpack/prod-docs.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import webpack from 'webpack';
22
import path from 'path';
33
import merge from 'webpack-merge';
4+
import autoprefixer from 'autoprefixer';
45
import ExtractTextPlugin from 'extract-text-webpack-plugin';
56
import CopyWebpackPlugin from 'copy-webpack-plugin';
67
import HtmlWebpackPlugin from 'html-webpack-plugin';
@@ -19,7 +20,12 @@ export default merge(baseConfig, {
1920
loaders: {
2021
css: ExtractTextPlugin.extract('css'),
2122
scss: ExtractTextPlugin.extract(['css', 'sass'])
22-
}
23+
},
24+
postcss: [
25+
autoprefixer({
26+
browsers: ['last 3 versions']
27+
})
28+
]
2329
},
2430
plugins: [
2531
new webpack.optimize.UglifyJsPlugin({

build/webpack/prod-lib.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import fs from 'fs';
22
import path from 'path';
33
import webpack from 'webpack';
44
import merge from 'webpack-merge';
5+
import autoprefixer from 'autoprefixer';
56
import ExtractTextPlugin from 'extract-text-webpack-plugin';
67
import config from '../config';
78
import baseConfig from './base';
@@ -35,7 +36,12 @@ export default merge(baseConfig, {
3536
loaders: {
3637
css: ExtractTextPlugin.extract('css'),
3738
scss: ExtractTextPlugin.extract(['css', 'sass'])
38-
}
39+
},
40+
postcss: [
41+
autoprefixer({
42+
browsers: ['last 2 versions']
43+
})
44+
]
3945
},
4046
plugins: [
4147
new webpack.optimize.UglifyJsPlugin({

dist/docs/docs.10916f44.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

dist/docs/docs.1500a5cc.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/docs/docs.6e3a4139.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

dist/docs/manifest.02098a2a.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/docs/manifest.e6d9ceed.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/docs/releases/v0.5.0/docs.0c76b7b3.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Vue.component('code-block', CodeBlock);
2222
Vue.use(VueRouter);
2323

2424
let router = new VueRouter({
25+
mode: 'hash',
2526
base: window.location.pathname,
2627
routes
2728
});

0 commit comments

Comments
 (0)