From 2471e1034664c348cb9fa4646b306f48c44572ec Mon Sep 17 00:00:00 2001 From: fragosti Date: Fri, 28 Sep 2018 13:09:16 +0200 Subject: Have React setup with basic build working --- packages/instant/webpack.config.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 packages/instant/webpack.config.js (limited to 'packages/instant/webpack.config.js') diff --git a/packages/instant/webpack.config.js b/packages/instant/webpack.config.js new file mode 100644 index 000000000..f7500c69c --- /dev/null +++ b/packages/instant/webpack.config.js @@ -0,0 +1,20 @@ +const path = require('path'); +module.exports = { + entry: './src/index.ts', + output: { + filename: '[name].bundle.js', + path: path.resolve(__dirname, 'lib'), + }, + devtool: 'source-map', + resolve: { + extensions: ['.js', '.json', '.ts', '.tsx'], + }, + module: { + rules: [ + { + test: /\.(ts|tsx)$/, + loader: 'awesome-typescript-loader', + }, + ], + }, +}; -- cgit v1.2.3