webpack.config.babel.js
450 Bytes
import webpack, {DefinePlugin} from 'webpack';
import merge from 'webpack-merge';
import baseConfig from '../../webpack.public.config';
import HtmlWebpackPlugin from 'html-webpack-plugin';
export default merge(baseConfig, {
//项目入口js文件
entry: ['./app/guoChao/src/index.js'],
plugins: [new HtmlWebpackPlugin({
title: 'reactapp',
filename: 'index.html',
template: './app/guoChao/index.html'
})]
});