acme.js-ARCHIVED/webpack.config.js

21 lines
422 B
JavaScript
Raw Normal View History

2019-10-08 10:33:14 +00:00
'use strict';
var path = require('path');
module.exports = {
2019-10-08 20:50:53 +00:00
entry: './examples/app.js',
//entry: './acme.js',
2019-10-08 10:33:14 +00:00
output: {
path: path.resolve(__dirname, 'dist'),
2019-10-08 20:50:53 +00:00
filename: 'app.js'
//filename: 'acme.js',
//library: '@root/acme',
//libraryTarget: 'umd'
//globalObject: "typeof self !== 'undefined' ? self : this"
2019-10-08 10:33:14 +00:00
},
resolve: {
aliasFields: ['webpack', 'browser'],
2019-10-08 20:50:53 +00:00
mainFields: ['browser', 'main']
2019-10-08 10:33:14 +00:00
}
};