Open AndreyAttr opened 7 years ago
Also need to clean webpack.common.config file and remove useless comments
And also - we do not need file-loader for
in [webpack.common.config] Because in the molecule-viewer-component.ts @AndreyAttr used raw-loader to download data to memory
Also we can try to configure all the information into webpack.common.config.ts See sample here:
https://medium.com/@deeepakampolu/using-loaders-with-webpack-f724e8d6469b see section Inline configuration there
//require(‘imports?angular=angular&$=jquery&moment=moment!angular-daterangepicker/js/angular-daterangepicker’);
require(exports?Backbone!imports?_=lodash&$=jquery!backbone.js);
{
module: {
loaders: [
{ test: /underscore/, loader: 'exports?_' }
{ test: /backbone/,
loader: 'exports?Backbone!imports?underscore=underscore&jquery=jquery'
}
]
}
}
Avoid:
chunkFilename: 'chunk-[name]-[id].js'
, so avoid chink-G-0.jsNeed to edit: project.json to exclude: bundle-loader includes-loader