-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.app.common.config.js
49 lines (46 loc) · 1.4 KB
/
webpack.app.common.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
const InjectPlugin = require("webpack-inject-plugin")
const path = require("path")
module.exports = () => {
return {
entry: './app/app.ts',
output: {
filename: 'dist/tingoMaxoChato.js',
chunkFilename: 'dist/[name].js',
path: path.resolve(path.dirname(''), "public"),
publicPath: "/",
},
resolve: {
extensions: ['.ts', '.js']
},
module: {
rules: [
{
test: /([a-zA-Z0-9\s_\\.\-\(\):])+\.static\.([a-zA-Z0-9])+$/,
use: 'raw-loader',
},
{
test: /\.tsx?$/,
exclude: /node_modules/,
use: {
loader: 'ts-loader',
options: {
configFile: "tsconfig.app.json"
}
},
},
{
test: /\.css$/,
use: ['to-string-loader', 'css-loader'],
},
{
test: /\.(png|jpg|gif|jpeg|woff|woff2|eot|ttf|svg)$/,
loader: 'url-loader?limit=100000'
},
{
test: /\.pug$/,
loader: ['raw-loader', 'pug-html-loader']
}
]
}
}
};