Dear Vue.js: it's not you, it's me: I'm too good for you.

This commit is contained in:
2019-10-24 01:00:18 +02:00
parent bff5c60a4e
commit feda28ec47
18 changed files with 643 additions and 230 deletions

View File

@@ -1,33 +1,29 @@
import path from "path";
import VueLoaderPlugin from "vue-loader/lib/plugin"; // tslint:disable-line:no-implicit-dependencies
import webpack from "webpack"; // tslint:disable-line:no-implicit-dependencies
const config: webpack.Configuration = {
devtool: "inline-source-map",
entry: "./src/frontend/index.ts",
mode: "development",
module: {
rules: [
{
exclude: /node_modules/,
loader: "ts-loader",
options: { appendTsSuffixTo: [/\.vue$/] },
test: /\.ts?$/
},
{
loader: "vue-loader",
test: /.vue$/
}
]
},
entry: "./src/frontend/index.tsx",
devtool: "inline-source-map",
output: {
filename: "[name].bundle.js",
path: path.resolve(__dirname, "dist"),
publicPath: "/assets/"
},
plugins: [new VueLoaderPlugin()],
module: {
rules: [
{
exclude: /node_modules/,
loader: "ts-loader",
test: /\.tsx?$/
}
]
},
resolve: {
extensions: [".ts", ".js"]
extensions: [".ts", ".tsx", ".js"],
alias: {
"@kredens": path.resolve(__dirname, "src/")
}
}
};