0x1eef
2e8cf6e333
The directories twenty-{server,client,cli} have been renamed to not include 'twenty-'. The gems are still published with the twenty- prefix, otherwise a collision is impossible to avoid. This commit makes it slightly easier to generalize twenty.
25 lines
412 B
JavaScript
25 lines
412 B
JavaScript
const webpack = require('webpack');
|
|
const path = require('path');
|
|
|
|
module.exports = {
|
|
resolve: {
|
|
alias: {
|
|
'~': [path.resolve('src/js')]
|
|
},
|
|
extensions: ['.ts', '.tsx']
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
use: 'ts-loader',
|
|
exclude: /node_modules/,
|
|
},
|
|
],
|
|
},
|
|
plugins: [
|
|
new webpack.ProvidePlugin({
|
|
React: 'react',
|
|
}),
|
|
],
|
|
}
|