Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
},
devtool: 'cheap-module-eval-source-map',
module: {
rules: [
{
test: /\.ts$/,
loader: 'ts-loader',
exclude: /node_modules/
},
{
test: /\.html$/,
loader: 'html-loader'
}
]
},
plugins: [new AureliaPlugin()]
},
mime: {
'text/x-typescript': ['ts']
},
reporters: ['mocha', 'progress'],
webpackServer: { noInfo: config.noInfo },
browsers: ['Chrome'],
customLaunchers: {
ChromeDebugging: {
base: 'Chrome',
flags: ['--remote-debugging-port=9333'],
debug: true
}
},
singleRun: false
});
]
},
resolve: {
extensions: [
'.js',
'.ts'
],
modules: [
'node_modules',
srcDir
]
},
plugins: [
new AureliaPlugin(),
new HtmlWebpackPlugin({
template: 'index.ejs',
favicon: path.resolve(assetsDir, 'favicon.ico')
})
],
devServer: {
stats: 'errors-only'
}
};
switch (args.mode) {
case 'development':
config.devtool = 'inline-source-map';
break;
]
},
resolve: {
extensions: [
'.js',
'.ts'
],
modules: [
'node_modules',
srcDir
]
},
plugins: [
new AureliaPlugin(),
new HtmlWebpackPlugin({
template: 'index.html'
})
],
devServer: {
stats: 'errors-only'
}
};
if (args.mode === 'development') {
config.devtool = 'inline-source-map';
}
return config;
}
test: /[\/\\]node_modules[\/\\]bluebird[\/\\].+\.js$/i,
use: [load.expose]
},
{
test: /\.(jpe?g|png|gif|svg|tff|eot|otf|woff2?)$/i,
use: [load.file]
}
]
},
plugins: [
new HtmlWebpackPlugin({
template: 'demo/index.ejs',
metadata: { title: pkg.name, server, baseUrl, debug: !production },
minify: !!production && minifyOpts
}),
new AureliaPlugin(),
new webpack.ProvidePlugin({ Promise: 'bluebird' }),
new ModuleDependenciesPlugin({ 'aurelia-testing': ['./compile-spy', './view-spy'] })
]
};
}
},
{
test: /\.(jpe?g|png|gif|svg|tff|eot|otf|woff2?)$/i,
use: [load.file]
}
]
},
plugins: [
new HtmlWebpackPlugin({
template: 'demo/index.ejs',
metadata: { title: pkg.name, server, baseUrl, debug: !production },
minify: !!production && minifyOpts
}),
new AureliaPlugin(),
new webpack.ProvidePlugin({ Promise: 'bluebird' }),
new ModuleDependenciesPlugin({ 'aurelia-testing': ['./compile-spy', './view-spy'] })
]
};
}