angularx-qrcode
Version:
Ionic 3/4 and Angular4/5/6/7/8+ QRCode module generator using qrcodejs
52 lines (46 loc) • 953 B
text/typescript
import * as webpack from 'webpack';
import * as path from 'path';
export default {
mode: 'development',
resolve: {
extensions: ['.ts', '.js', '.json']
},
module: {
rules: [
{
test: /\.ts$/,
use: [
{
loader: 'awesome-typescript-loader',
options: {
configFileName: 'tsconfig.json'
}
}
],
exclude: [
/\.e2e\.ts$/,
/node_modules/
]
},
{
test: /\.json$/,
use: 'json-loader'
},
{
test: /\.html$/,
use: 'raw-loader'
}
]
},
plugins: [
new webpack.SourceMapDevToolPlugin({
filename: null,
test: /\.(ts|js)($|\?)/i
}),
new webpack.ContextReplacementPlugin(
/angular(\\|\/)core(\\|\/)@angular/,
path.join(__dirname, 'src')
),
new webpack.NoEmitOnErrorsPlugin()
]
} as webpack.Configuration;