mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
readme modify start.sh and nom-build-all refactoring change travis conf update version of zone.js (fixes console error) karma conf remove dist add alias build override tsconfig components build
47 lines
1.3 KiB
JavaScript
47 lines
1.3 KiB
JavaScript
const webpack = require('webpack');
|
|
const helpers = require('./helpers');
|
|
|
|
module.exports = {
|
|
|
|
devtool: 'inline-source-map',
|
|
|
|
resolve: {
|
|
extensions: ['.ts', '.js'],
|
|
modules: [helpers.root('../ng2-components'), helpers.root('node_modules')]
|
|
},
|
|
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.ts$/,
|
|
loaders: ['ts-loader', 'angular2-template-loader'],
|
|
exclude: [ /public/, /resources/, /dist/]
|
|
},
|
|
{
|
|
test: /\.html$/,
|
|
loader: 'html-loader',
|
|
exclude: [ /public/, /resources/, /dist/]
|
|
|
|
},
|
|
{
|
|
test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/,
|
|
loader: 'null-loader'
|
|
},
|
|
{
|
|
test: /\.css$/,
|
|
loader: ['to-string-loader', 'css-loader'],
|
|
exclude: [ /public/, /resources/, /dist/]
|
|
}
|
|
]
|
|
},
|
|
|
|
plugins: [
|
|
new webpack.ContextReplacementPlugin(
|
|
// The (\\|\/) piece accounts for path separators in *nix and Windows
|
|
/angular(\\|\/)core(\\|\/)(esm(\\|\/)src|src)(\\|\/)linker/,
|
|
helpers.root('./src'), // location of your src
|
|
{} // a map of your routes
|
|
)
|
|
]
|
|
}
|