diff --git a/tsconfig.json b/tsconfig.json index a574204e10118c61d734e3000d084b2976944dd7..8b83beb3277ffc1ef017b2bdc9bce3aed6f7937b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,6 +10,7 @@ "target": "es5", "esModuleInterop": true, "strictNullChecks": false, + "removeComments": true, "typeRoots": [ "node_modules/@types", "src/types" diff --git a/webpack.js b/webpack.js index 6d920cf7ef5c0211c48342ea43cc7ae7216ec100..5fa4719e73fae431c180de997a1b2e9163d23f10 100644 --- a/webpack.js +++ b/webpack.js @@ -2,15 +2,6 @@ const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const distPath = path.resolve(__dirname, 'dist'); -/* -const webpack = require('webpack'); -const HtmlWebpackPlugin = require('html-webpack-plugin'); - -const outputDir = 'dist_example'; -const publicPath = '/'; -const tsConfig = 'tsconfig_example.json'; - */ - module.exports = { entry: "./src/app/index.ts", mode: 'development', @@ -51,87 +42,4 @@ module.exports = { compress: true, port: 9000 } - /* - output: { - path: path.resolve(__dirname, outputDir), - filename: '[name].bundle.js', - publicPath: publicPath, - crossOriginLoading: 'anonymous' - }, - devtool: 'source-map', - mode: 'development', - module: { - rules: [ - { - test: /\.js$/, - loader: 'babel-loader', - exclude: /node_modules/, - }, - { - test: /\.tsx?$/, - use: [ - { - loader: 'ts-loader', - options: { - configFile: tsConfig - } - } - ], - exclude: /node_modules/ - }, - { - test: /\.mjs$/, - include: /node_modules/, - type: 'javascript/auto' - } - ] - }, - plugins: [ - new HtmlWebpackPlugin({ - title: 'Medsurf PIXI', - template: 'src/public/index.html', - hash: true, - minify: { - collapseWhitespace: true, - removeComments: true, - removeRedundantAttributes: true, - removeScriptTypeAttributes: true, - removeStyleLinkTypeAttributes: true, - useShortDoctype: true - } - }), - new webpack.ProvidePlugin({ - PIXI: 'pixi.js-legacy' - }), - ], - node: { - net: 'empty', - tls: 'empty', - dns: 'empty', - fs: 'empty', - }, - resolve: { - extensions: ['.js', '.ts', '.tsx', '.css', '.scss', '.json', '.mjs'], - modules: ['node_modules'], - plugins: [] - }, - stats: 'verbose', - devServer: { - contentBase: path.join(__dirname, outputDir), - compress: false, - host: '0.0.0.0', - port: 9000, - publicPath: publicPath, - https: false, - overlay: { - warnings: true, - errors: true - }, - historyApiFallback: true, - headers: { - "Access-Control-Allow-Origin": "*", - "Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, PATCH, OPTIONS", - } - } - */ }; \ No newline at end of file