mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-03-16 22:10:27 +00:00
21 lines
616 B
JavaScript
21 lines
616 B
JavaScript
import webpack from 'webpack';
|
|
import merge from 'webpack-merge';
|
|
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
|
import baseWebpackConfig from './base';
|
|
|
|
Object.keys(baseWebpackConfig.entry).forEach((name) => {
|
|
baseWebpackConfig.entry[name] = ['./build/server/client'].concat(baseWebpackConfig.entry[name]);
|
|
});
|
|
|
|
export default merge(baseWebpackConfig, {
|
|
devtool: '#inline-source-map',
|
|
plugins: [
|
|
new webpack.HotModuleReplacementPlugin(),
|
|
new webpack.NoErrorsPlugin(),
|
|
new HtmlWebpackPlugin({
|
|
filename: 'index.html',
|
|
template: 'docs/index.html',
|
|
inject: true
|
|
})
|
|
]
|
|
});
|