mirror of
https://github.com/valitydev/koffing.git
synced 2024-11-06 01:05:19 +00:00
32 lines
707 B
JavaScript
32 lines
707 B
JavaScript
const webpack = require('webpack');
|
|
const helpers = require('./helpers');
|
|
const path = require('path');
|
|
|
|
module.exports = {
|
|
devtool: 'inline-source-map',
|
|
|
|
resolve: {
|
|
modules: [path.join(__dirname, 'src'), 'node_modules'],
|
|
alias: {
|
|
koffing: __dirname + '/../src/app'
|
|
},
|
|
extensions: ['.ts', '.js']
|
|
},
|
|
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.ts$/,
|
|
use: ['awesome-typescript-loader', 'tslint-loader']
|
|
}
|
|
]
|
|
},
|
|
|
|
plugins: [
|
|
new webpack.ContextReplacementPlugin(
|
|
/angular(\\|\/)core(\\|\/)@angular/,
|
|
path.resolve(__dirname, '../src')
|
|
)
|
|
]
|
|
};
|