Logan/Example/Logan-WebSDK/webpack.config.js
2019-12-12 17:09:01 +08:00

25 lines
579 B
JavaScript

var path = require('path');
const DEMO_PATH = './demo';
const STATIC_JS = 'js';
const PUBLIC_PATH = './' + STATIC_JS + '/';
module.exports = [
{
mode: 'production',
entry: {
'test': ['./src/test.js']
},
output: {
path: path.join(__dirname, DEMO_PATH, STATIC_JS),
publicPath: PUBLIC_PATH,
filename: '[name].js',
chunkFilename: '[name].[chunkhash].js',
},
resolve: {
extensions: ['.js']
},
module: {
rules: []
}
}
];