2017-06-21 11:24:44 +00:00
|
|
|
const Path = require('path');
|
|
|
|
const TsConfigPathsPlugin = require('awesome-typescript-loader').TsConfigPathsPlugin;
|
|
|
|
const packages = require('../../package.json');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
target: 'web',
|
|
|
|
entry: {
|
|
|
|
app: [
|
2017-07-03 10:43:02 +00:00
|
|
|
Path.resolve(__dirname, '../../src/ts/@overflow/app/index.tsx')
|
2017-06-21 11:24:44 +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: [
|
2017-07-03 10:21:42 +00:00
|
|
|
],
|
|
|
|
node: {
|
|
|
|
fs: 'empty'
|
|
|
|
}
|
2017-06-21 11:24:44 +00:00
|
|
|
};
|