diff options
| author | caleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu> | 2022-03-23 17:36:01 -0400 |
|---|---|---|
| committer | caleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu> | 2022-03-23 17:36:01 -0400 |
| commit | e28fcc59a76772eae64ed480919cddb60a3b5fce (patch) | |
| tree | db7ed6cf18f928fae734f3cc9430bb2b220ba2a0 /webpack.config.js | |
| parent | a7facd6e825e3a2d60752df0b8526482b19a12de (diff) | |
| parent | ffa23343e0a0badd9e50a005359fdb79efead995 (diff) | |
Merge branch 'master' of https://github.com/AttorneyOnline/webAO into multipleBackgroundTypes
Diffstat (limited to 'webpack.config.js')
| -rw-r--r-- | webpack.config.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/webpack.config.js b/webpack.config.js index 68546c3..07bca15 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -17,13 +17,14 @@ module.exports = { client: './webAO/client.js', master: './webAO/master.ts', dom: glob.sync('./webAO/dom/*.js'), + components: glob.sync('./webAO/components/*.js'), }, node: { global: true, }, devtool: 'source-map', resolve: { - extensions: ["", ".webpack.js", ".web.js", ".ts", ".tsx", ".js"], + extensions: ['.js', '.jsx', '.tsx', '.ts', '.json'], }, devServer: { static: { @@ -58,7 +59,7 @@ module.exports = { }, }, }, - { test: /\.tsx?$/, loader: "ts-loader" }, + { test: /\.ts?$/, loader: "ts-loader" }, // All output '.js' files will have any sourcemaps re-processed by 'source-map-loader'. { test: /\.js$/, loader: "source-map-loader" }, ], @@ -92,13 +93,13 @@ module.exports = { new HtmlWebpackPlugin({ title: 'Attorney Online', filename: 'client.html', - chunks: ['client', 'ui', 'dom'], + chunks: ['client', 'ui', 'dom', 'components'], template: 'public/client.html', }), new webpack.DefinePlugin({ 'process.env': JSON.stringify(process.env), }), - new WorkboxPlugin.GenerateSW(), + // new WorkboxPlugin.GenerateSW(), ], |
