mirror of
https://github.com/danbulant/ester_os
synced 2026-07-06 11:30:40 +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 = {
|
module.exports = {
|
||||||
entry: './src/index.ts',
|
entry: './src/index.ts',
|
||||||
devtool: 'inline-source-map',
|
devtool: 'inline-source-map',
|
||||||
|
devServer: {
|
||||||
|
compress: true,
|
||||||
|
port: 8080
|
||||||
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
// TYPESCRIPT
|
// TYPESCRIPT
|
||||||
|
|
@ -22,8 +26,11 @@ module.exports = {
|
||||||
},
|
},
|
||||||
// IMAGES
|
// IMAGES
|
||||||
{
|
{
|
||||||
test: /\.(png|svg|jpg|gif)$/,
|
test: /\.(png|svg|jpe?g|gif)$/,
|
||||||
use: [
|
use: [
|
||||||
|
{
|
||||||
|
loader: 'file-loader'
|
||||||
|
},
|
||||||
'file-loader',
|
'file-loader',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue