This commit is contained in:
2019-10-06 23:53:59 +02:00
parent 40900cdf1b
commit 7083711fd5
11 changed files with 256 additions and 19 deletions

View File

@@ -1,4 +1,5 @@
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 = {
@@ -9,8 +10,13 @@ const config: webpack.Configuration = {
rules: [
{
exclude: /node_modules/,
test: /\.tsx?$/,
use: "ts-loader"
loader: "ts-loader",
options: { appendTsSuffixTo: [/\.vue$/] },
test: /\.ts?$/
},
{
loader: "vue-loader",
test: /.vue$/
}
]
},
@@ -19,8 +25,9 @@ const config: webpack.Configuration = {
path: path.resolve(__dirname, "dist"),
publicPath: "/assets/"
},
plugins: [new VueLoaderPlugin()],
resolve: {
extensions: [".tsx", ".ts", ".js"]
extensions: [".ts", ".js"]
}
};