-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.ts
30 lines (28 loc) · 933 Bytes
/
webpack.config.ts
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
import { AureliaPlugin } from "aurelia-webpack-plugin";
import { Configuration } from "webpack";
import { resolve } from "path";
const config = (): Configuration => {
return {
devtool: "inline-source-map",
entry: {
"app": ["aurelia-bootstrapper"]
},
module: {
rules: [
{ test: /\.ts$/, include: /src/, use: { loader: "ts-loader", options: { configFile: "tsconfig.app.json" } } },
{ test: /\.html$/, use: ["html-loader", "aurelia-webpack-plugin/html-requires-loader", "aurelia-fontawesome-loader/loader"] },
]
},
resolve: {
extensions: [".ts", ".js"],
modules: ["src", resolve(__dirname, "node_modules")],
symlinks: false
},
plugins: [
new AureliaPlugin({
noHtmlLoader: true
})
]
};
};
export default config;