1
0
mirror of https://github.com/mgerb/ps-launcher synced 2026-01-09 18:12:50 +00:00

lots of progress - basic functionality work - bundling working

This commit is contained in:
2017-10-18 23:37:05 -05:00
parent c4e028d102
commit 96f9c4ca5d
27 changed files with 1178 additions and 174 deletions

View File

@@ -43,28 +43,31 @@ module.exports = {
},
{
test: /\.svg$/,
use:
'url-loader?limit=65000&mimetype=image/svg+xml&name=static/[name].[hash].[ext]',
use: 'url-loader?limit=65000&mimetype=image/svg+xml&name=static/[name].[hash].[ext]',
},
{
test: /\.woff$/,
use:
'url-loader?limit=65000&mimetype=application/font-woff&name=static/[name].[hash].[ext]',
use: 'url-loader?limit=65000&mimetype=application/font-woff&name=static/[name].[hash].[ext]',
},
{
test: /\.woff2$/,
use:
'url-loader?limit=65000&mimetype=application/font-woff2&name=static/[name].[hash].[ext]',
use: 'url-loader?limit=65000&mimetype=application/font-woff2&name=static/[name].[hash].[ext]',
},
{
test: /\.[ot]tf$/,
use:
'url-loader?limit=65000&mimetype=application/octet-stream&name=static/[name].[hash].[ext]',
use: 'url-loader?limit=65000&mimetype=application/octet-stream&name=static/[name].[hash].[ext]',
},
{
test: /\.eot$/,
use:
'url-loader?limit=65000&mimetype=application/vnd.ms-fontobject&name=static/[name].[hash].[ext]',
use: 'url-loader?limit=65000&mimetype=application/vnd.ms-fontobject&name=static/[name].[hash].[ext]',
},
{
test: /\.(?:png|jpg|svg)$/,
loader: 'file-loader',
query: {
// Inline images smaller than 10kb as data URIs
limit: 10000,
},
},
],
},
@@ -86,5 +89,8 @@ module.exports = {
minChunks: 'Infinity',
}),
new webpack.HotModuleReplacementPlugin(),
new webpack.DefinePlugin({
VERSION: JSON.stringify(require("./package.json").version)
})
],
};