2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-19 09:50:33 +03:00

- dont destroy /dist/ when building homepage

- update public path (should work this time!)
- load octicons from CDN
This commit is contained in:
Jeff
2018-01-15 15:52:31 -08:00
parent a0ba4b4c3b
commit ce6d3ea2cd
6 changed files with 10 additions and 7 deletions
+4 -2
View File
@@ -14,8 +14,10 @@ var spinner = ora(`building ${text}...`);
spinner.start(); spinner.start();
var assetsPath = path.join(config.build.assetsRoot, config.build.assetsSubDirectory); var assetsPath = path.join(config.build.assetsRoot, config.build.assetsSubDirectory);
rm('-rf', assetsPath); if (!utils.shouldBuildHomepage()) {
mkdir('-p', assetsPath); rm('-rf', assetsPath);
mkdir('-p', assetsPath);
}
/** /**
* Build the /dist/ folder * Build the /dist/ folder
+1 -1
View File
@@ -19,7 +19,7 @@ module.exports = merge(baseWebpackConfig, {
}, },
devtool: config.homepage.productionSourceMap ? '#source-map' : false, devtool: config.homepage.productionSourceMap ? '#source-map' : false,
output: { output: {
publicPath: '', publicPath: config.homepage.assetsPublicPath,
path: config.homepage.assetsRoot, path: config.homepage.assetsRoot,
filename: utils.assetsPath('js/[name].[chunkhash].js'), filename: utils.assetsPath('js/[name].[chunkhash].js'),
chunkFilename: utils.assetsPath('js/[id].[chunkhash].js') chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
+1 -1
View File
@@ -23,7 +23,7 @@ module.exports = {
entry: './docs/homepage/home.js', entry: './docs/homepage/home.js',
assetsRoot: path.resolve(__dirname, '../site'), assetsRoot: path.resolve(__dirname, '../site'),
assetsSubDirectory: '', assetsSubDirectory: '',
assetsPublicPath: '/', assetsPublicPath: '',
productionSourceMap: true productionSourceMap: true
} }
}; };
+1 -1
View File
@@ -1,4 +1,4 @@
@import '~normalize.css'; @import '~normalize.css';
@import 'demo'; @import 'demo';
@import 'cyan_theme'; @import 'cyan_theme';
@import 'octicons'; //@import 'octicons';
+2 -1
View File
@@ -6,6 +6,7 @@
<link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:400,600|Roboto Mono" rel="stylesheet" type="text/css"> <link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:400,600|Roboto Mono" rel="stylesheet" type="text/css">
<link href="//fonts.googleapis.com/css?family=Dosis:300&amp;text=Vue Select" rel="stylesheet" type="text/css"> <link href="//fonts.googleapis.com/css?family=Dosis:300&amp;text=Vue Select" rel="stylesheet" type="text/css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/octicons/4.4.0/font/octicons.min.css" rel="stylesheet" type="text/css">
<meta name="title" content="Vue Select | VueJS Select2/Chosen Component"> <meta name="title" content="Vue Select | VueJS Select2/Chosen Component">
<meta name="description" <meta name="description"
@@ -102,7 +103,7 @@
<span class="octicon octicon-mark-github"></span> View on GitHub <span class="octicon octicon-mark-github"></span> View on GitHub
</a> </a>
<a class="btn btn-primary btn-outline btn-lg" href="/docs/"> <a class="btn btn-primary btn-outline btn-lg" href="docs/">
<span class="octicon octicon-book"></span> Read the Docs <span class="octicon octicon-book"></span> Read the Docs
</a> </a>
</div> </div>
+1 -1
View File
@@ -16,7 +16,7 @@ new Vue({
{ {
title: 'Read the Docs', title: 'Read the Docs',
icon: 'octicon-book', icon: 'octicon-book',
url: '/docs/' url: 'docs/'
}, },
{ {
title: 'View on GitHub', title: 'View on GitHub',