1 const path = require('path')
2 const ExtractTextPlugin = require('extract-text-webpack-plugin')
3 const HtmlWebpackPlugin = require('html-webpack-plugin')
10 filename: 'pages/temp.html',
11 template: path.resolve(__dirname, './page.ejs'),
16 exports.resolve = dir => path.join(__dirname, '..', dir || '')
18 exports.page = options => {
25 return new HtmlWebpackPlugin(Object.assign({}, PAGE_OPTIONS, {
28 template: template || PAGE_OPTIONS.template,
29 filename: `pages/${name}.html`
33 exports.assetsPath = p => path.posix.join('assets', p)