WIP
This commit is contained in:
53
nodejs-packages/sprotty-live-beans-client/webpack.config.js
Normal file
53
nodejs-packages/sprotty-live-beans-client/webpack.config.js
Normal file
@@ -0,0 +1,53 @@
|
||||
var webpack = require('webpack');
|
||||
var path = require('path');
|
||||
var CircularDependencyPlugin = require('circular-dependency-plugin');
|
||||
|
||||
module.exports = {
|
||||
entry: [
|
||||
'core-js/es6/map',
|
||||
'core-js/es6/promise',
|
||||
'core-js/es6/string',
|
||||
'core-js/es6/symbol',
|
||||
'./src/app.ts'
|
||||
],
|
||||
output: {
|
||||
filename: 'bundle.js',
|
||||
path: path.resolve(__dirname, '.')
|
||||
},
|
||||
mode: 'development',
|
||||
devtool: 'source-map',
|
||||
resolve: {
|
||||
// Add `.ts` and `.tsx` as a resolvable extension.
|
||||
extensions: ['.webpack.js', '.web.js', '.ts', '.tsx', '.js']
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
// all files with a `.ts` or `.tsx` extension will be handled by `ts-loader`
|
||||
{
|
||||
test: /\.tsx?$/,
|
||||
use: [{
|
||||
loader: 'ts-loader',
|
||||
options: {
|
||||
configFile: path.resolve(__dirname, 'tsconfig.json')
|
||||
}
|
||||
}]
|
||||
},
|
||||
{
|
||||
test: /\.css$/,
|
||||
exclude: /\.useable\.css$/,
|
||||
loader: 'style-loader!css-loader'
|
||||
}
|
||||
]
|
||||
},
|
||||
node : { fs: 'empty', net: 'empty' },
|
||||
plugins: [
|
||||
new CircularDependencyPlugin({
|
||||
exclude: /(node_modules|examples)\/./,
|
||||
failOnError: false
|
||||
}),
|
||||
new webpack.WatchIgnorePlugin([
|
||||
/\.js$/,
|
||||
/\.d\.ts$/
|
||||
])
|
||||
]
|
||||
};
|
||||
Reference in New Issue
Block a user