mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-04-17 21:31:03 +00:00
25 lines
803 B
JavaScript
25 lines
803 B
JavaScript
import webpack from 'webpack';
|
|
import merge from 'webpack-merge';
|
|
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
|
import FriendlyErrorsPlugin from 'friendly-errors-webpack-plugin';
|
|
import baseWebpackConfig from './base';
|
|
import config from '../config';
|
|
|
|
Object.keys(baseWebpackConfig.entry).forEach((name) => {
|
|
baseWebpackConfig.entry[name] = ['./build/server/client', ...[baseWebpackConfig.entry[name]]];
|
|
});
|
|
|
|
export default merge(baseWebpackConfig, {
|
|
devtool: '#eval-source-map',
|
|
plugins: [
|
|
new webpack.WatchIgnorePlugin([config.nodePath]),
|
|
new webpack.HotModuleReplacementPlugin(),
|
|
new webpack.NoEmitOnErrorsPlugin(),
|
|
new HtmlWebpackPlugin({
|
|
filename: 'index.html',
|
|
template: 'docs/index.html',
|
|
inject: true
|
|
}),
|
|
new FriendlyErrorsPlugin()
|
|
]
|
|
});
|