Commit 27eb746b authored by Élodie Thiéblin's avatar Élodie Thiéblin
Browse files

[Webpack] Add config for tsx files and add dublincore file

parent db139a4e8748
......@@ -11,7 +11,8 @@ module.exports = [
conference: "./src/conference/conference.ts",
track: "./src/track/track.ts",
talk: "./src/talk/talk.ts",
blogpost: "./src/blogpost/blogpost.ts"
blogpost: "./src/blogpost/blogpost.ts",
dcelement: "./src/dublincore/dublincore.tsx"
},
mode: isProd ? "production" : "development",
output: {
......@@ -23,6 +24,9 @@ module.exports = [
resolve: {
extensions: [".ts", ".tsx", ".js", ".json", ".vue"]
},
node: {
fs: "empty"
},
module: {
rules: [
{ test: /\.vue$/, loader: "vue-loader" },
......@@ -31,7 +35,7 @@ module.exports = [
use: ["vue-style-loader", "css-loader"]
},
{
test: /\.ts$/,
test: /\.tsx?$/,
loader: "ts-loader",
options: { appendTsSuffixTo: [/\.vue$/] }
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment