Vision
"webpack": "^3.10.0",
"webpack-dev-server": "^2.9.5"
文件结构(打包前):
w用能境战求道,重件开又是正易里是了些之框ebpack.config.j求圈分件圈浏第用代是水刚道。的它还s
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require("extract-text-webpack-plugin");
var getHtmlConfig = function (name, title) {
return {
template: './demos/' + name + '.html',
filename: 'demos/' + name + '.html',
title: title,
inject: true | 'body',
hash: true,