Created
July 21, 2020 18:32
-
-
Save cazetto/afd228e5862a6d15878b9b784d5b2457 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// "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