mirror of
https://github.com/danbulant/ester_os
synced 2026-06-19 06:11:24 +00:00
Dev server configuration & fix file-loader
This commit is contained in:
parent
5d4288102d
commit
9b11953e58
1 changed files with 8 additions and 1 deletions
|
|
@ -4,6 +4,10 @@ const path = require('path');
|
|||
module.exports = {
|
||||
entry: './src/index.ts',
|
||||
devtool: 'inline-source-map',
|
||||
devServer: {
|
||||
compress: true,
|
||||
port: 8080
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
// TYPESCRIPT
|
||||
|
|
@ -22,8 +26,11 @@ module.exports = {
|
|||
},
|
||||
// IMAGES
|
||||
{
|
||||
test: /\.(png|svg|jpg|gif)$/,
|
||||
test: /\.(png|svg|jpe?g|gif)$/,
|
||||
use: [
|
||||
{
|
||||
loader: 'file-loader'
|
||||
},
|
||||
'file-loader',
|
||||
],
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue