Skip to content

Instantly share code, notes, and snippets.

@cazetto
Created July 21, 2020 18:32
Show Gist options
  • Save cazetto/afd228e5862a6d15878b9b784d5b2457 to your computer and use it in GitHub Desktop.
Save cazetto/afd228e5862a6d15878b9b784d5b2457 to your computer and use it in GitHub Desktop.
// "start": "webpack --config webpack.dev.js --watch"
const path = require('path');
module.exports = {
mode: 'development',
entry: {
i18n: ['./libs/i18n/src/index.ts'],
components: ['./libs/components/src/index.tsx'],
cx: ['./apps/cx/src/index.tsx'],
},
output: {
path: path.resolve(__dirname, '.dist-memory'),
filename: '[name].bundle.js',
},
module: {
rules: [
{
test: /\.ts(x?)$/,
exclude: /(node_modules)/,
use: {
loader: 'ts-loader',
},
},
],
},
plugins: [],
resolve: {
extensions: ['.ts', '.tsx', '.js', '.jsx'],
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment