FIRST PROTO
This commit is contained in:
parent
7c2d0ae96c
commit
141fc8dd51
18 changed files with 366 additions and 208 deletions
|
|
@ -20,24 +20,27 @@ module.exports = {
|
|||
},
|
||||
{
|
||||
test: /\.jsx?$/,
|
||||
use: [{ loader: 'babel-loader' }],
|
||||
use: [{loader: 'babel-loader'}],
|
||||
include: defaultInclude
|
||||
},
|
||||
{
|
||||
test: /\.(jpe?g|png|gif)$/,
|
||||
use: [{ loader: 'file-loader?name=img/[name]__[hash:base64:5].[ext]' }],
|
||||
use: [{loader: 'file-loader?name=img/[name]__[hash:base64:5].[ext]'}],
|
||||
include: defaultInclude
|
||||
},
|
||||
{
|
||||
test: /\.(eot|svg|ttf|woff|woff2)$/,
|
||||
use: [{ loader: 'file-loader?name=font/[name]__[hash:base64:5].[ext]' }],
|
||||
use: [{loader: 'file-loader?name=font/[name]__[hash:base64:5].[ext]'}],
|
||||
include: defaultInclude
|
||||
}
|
||||
]
|
||||
},
|
||||
target: 'electron-renderer',
|
||||
plugins: [
|
||||
new HtmlWebpackPlugin({title: 'Marvin'}),
|
||||
new HtmlWebpackPlugin({
|
||||
title: 'Marvin',
|
||||
template: 'src/index.html'
|
||||
}),
|
||||
new MiniCssExtractPlugin({
|
||||
// Options similar to the same options in webpackOptions.output
|
||||
// both options are optional
|
||||
|
|
@ -49,12 +52,14 @@ module.exports = {
|
|||
}),
|
||||
// new MinifyPlugin()
|
||||
],
|
||||
/*
|
||||
stats: {
|
||||
colors: true,
|
||||
children: false,
|
||||
chunks: false,
|
||||
modules: false
|
||||
},
|
||||
*/
|
||||
optimization: {
|
||||
minimize: true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue