Core code of ChartWerk project
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
function resolve(dir) {
|
|
|
|
return path.join(__dirname, '..', dir)
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
context: resolve('demo'),
|
|
|
|
entry: './demo_pod.ts',
|
|
|
|
plugins: [],
|
|
|
|
devtool: 'inline-source-map',
|
|
|
|
watch: true,
|
|
|
|
mode: 'development',
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.ts$/,
|
|
|
|
use: 'ts-loader',
|
|
|
|
exclude: /node_modules/
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.css$/,
|
|
|
|
use: [
|
|
|
|
{ loader: 'style-loader', options: { injectType: 'lazyStyleTag' } },
|
|
|
|
'css-loader',
|
|
|
|
],
|
|
|
|
exclude: /node_modules/
|
|
|
|
}
|
|
|
|
],
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
extensions: ['.ts', '.js'],
|
|
|
|
},
|
|
|
|
output: {
|
|
|
|
filename: 'demo.js',
|
|
|
|
path: resolve('demo/dist'),
|
|
|
|
libraryTarget: 'umd',
|
|
|
|
umdNamedDefine: true
|
|
|
|
}
|
|
|
|
};
|