Added angular-librarian for manage library
This commit is contained in:
parent
9d174550f5
commit
e625f9fd30
44 changed files with 1867 additions and 228 deletions
46
webpack/webpack.test.js
Normal file
46
webpack/webpack.test.js
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
'use strict';
|
||||
|
||||
const webpack = require('webpack');
|
||||
|
||||
const SourceMapDevToolPlugin = webpack.SourceMapDevToolPlugin;
|
||||
const webpackCommon = require('./webpack.common');
|
||||
const webpackUtils = require('./webpack.utils');
|
||||
|
||||
module.exports = (watch) => {
|
||||
return webpackCommon('test', {
|
||||
devtool: watch ? 'inline-source-map' : 'cheap-module-eval-source-map',
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.s?css$/,
|
||||
use: ['raw-loader', 'css-loader', 'sass-loader']
|
||||
},
|
||||
{
|
||||
enforce: 'pre',
|
||||
exclude: /node_modules/,
|
||||
test: /\.ts$/,
|
||||
use: 'tslint-loader'
|
||||
},
|
||||
{
|
||||
enforce: 'post',
|
||||
exclude: [
|
||||
/node_modules/,
|
||||
/\.(e2e|spec\.)ts$/
|
||||
],
|
||||
test: /\.ts$/,
|
||||
use: 'istanbul-instrumenter-loader?esModules=true'
|
||||
}
|
||||
]
|
||||
},
|
||||
plugins: [
|
||||
new SourceMapDevToolPlugin({
|
||||
filename: null,
|
||||
test: /\.ts$/
|
||||
})
|
||||
],
|
||||
resolve: {
|
||||
modules: [ webpackUtils.srcPath() ],
|
||||
moduleExtensions: ['-loader']
|
||||
}
|
||||
});
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue