feat: prototype blog post generation in dev server

This commit is contained in:
endiliey 2018-07-30 01:35:35 +08:00
parent 8cbd23d690
commit 7ecd4c9bef
9 changed files with 112 additions and 31 deletions

View file

@ -1,6 +1,5 @@
const Config = require('webpack-chain');
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = function createBaseConfig(props) {
const {outDir, themePath, sourceDir, publicPath} = props;
@ -43,14 +42,5 @@ module.exports = function createBaseConfig(props) {
presets: ['env', 'react']
});
config.plugin('html-webpack-plugin').use(HtmlWebpackPlugin, [
{
inject: false,
hash: true,
template: path.resolve(__dirname, '../core/index.html'),
filename: 'index.html'
}
]);
return config;
};