2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-13 08:32:26 +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();
var assetsPath = path.join(config.build.assetsRoot, config.build.assetsSubDirectory);
rm('-rf', assetsPath);
mkdir('-p', assetsPath);
if (!utils.shouldBuildHomepage()) {
rm('-rf', assetsPath);
mkdir('-p', assetsPath);
}
/**
* Build the /dist/ folder
+1 -1
View File
@@ -19,7 +19,7 @@ module.exports = merge(baseWebpackConfig, {
},
devtool: config.homepage.productionSourceMap ? '#source-map' : false,
output: {
publicPath: '',
publicPath: config.homepage.assetsPublicPath,
path: config.homepage.assetsRoot,
filename: utils.assetsPath('js/[name].[chunkhash].js'),
chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')