deprecated_overflow_webapp/config/webpack/webpack.config.base.js

50 lines
1.1 KiB
JavaScript
Raw Normal View History

2017-12-18 08:06:05 +00:00
const Path = require('path');
const TsConfigPathsPlugin = require('awesome-typescript-loader').TsConfigPathsPlugin;
const packages = require('../../package.json');
module.exports = {
target: 'web',
entry: {
2017-12-18 10:18:04 +00:00
webapp: [
Path.resolve(__dirname, '../../src/ts/@overflow/webapp/index.tsx')
2017-12-18 08:06:05 +00:00
],
vendor: Object.keys(packages.dependencies)
},
output: {
path: Path.resolve(__dirname, '../../dist'),
filename: '[name].js',
publicPath: '/'
},
devtool: '',
resolve: {
extensions: ['.ts', '.tsx', '.js', '.json'],
plugins: [
new TsConfigPathsPlugin({
tsconfig: "tsconfig.json",
compiler: "typescript"
})
]
},
module: {
rules: [
{
test: /\.tsx?$/,
enforce: 'pre',
exclude: [
Path.resolve(__dirname, '../../node_modules/')
],
loader: 'tslint-loader',
}
]
},
plugins: [
],
node: {
fs: 'empty'
}
};