Cleaup webpack config

This commit is contained in:
Max Leiter 2022-06-01 10:32:00 -07:00
parent d42232ab77
commit ee887197c9
No known key found for this signature in database
GPG key ID: A3512F2F2F17EBDA

View file

@ -93,28 +93,13 @@ const config: webpack.Configuration = {
}, },
plugins: [ plugins: [
new VueLoaderPlugin(), new VueLoaderPlugin(),
// new ForkTsCheckerWebpackPlugin({
// typescript: {
// diagnosticOptions: {
// semantic: true,
// syntactic: true,
// },
// configFile: path.resolve(__dirname, "client/tsconfig.json"),
// },
// }),
new webpack.DefinePlugin({ new webpack.DefinePlugin({
__VUE_OPTIONS_API__: true,
__VUE_PROD_DEVTOOLS__: false, __VUE_PROD_DEVTOOLS__: false,
}), }),
new MiniCssExtractPlugin({ new MiniCssExtractPlugin({
filename: "css/style.css", filename: "css/style.css",
}), }),
new webpack.IgnorePlugin({resourceRegExp: /canvas/}), new webpack.IgnorePlugin({resourceRegExp: /canvas/}),
// TODO: verify necessary
new webpack.ProvidePlugin({
Vue: ["vue/dist/vue.esm.js", "default"],
}),
new CopyPlugin({ new CopyPlugin({
patterns: [ patterns: [
{ {