Skip to content

Commit

Permalink
2 builds now building properly (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
glomotion committed Jun 16, 2020
1 parent 62eed8e commit 8824339
Show file tree
Hide file tree
Showing 9 changed files with 387 additions and 26 deletions.
2 changes: 2 additions & 0 deletions dist/main.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/main.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/main.modern.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/main.modern.js.map

Large diffs are not rendered by default.

137 changes: 137 additions & 0 deletions dist/vendors~main.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/vendors~main.js.map

Large diffs are not rendered by default.

239 changes: 239 additions & 0 deletions dist/vendors~main.modern.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/vendors~main.modern.js.map

Large diffs are not rendered by default.

29 changes: 3 additions & 26 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,14 @@ const BabelMultiTargetPlugin = require('webpack-babel-multi-target-plugin')
module.exports = {
mode: 'production',
devtool: 'source-map',
entry: {
'main': './src/composited-card.component.ts'
},
entry: './src/composited-card.component.ts',
output: {
filename: 'composited-card.packed.js',
path: path.resolve(__dirname, 'dist'),
publicPath: '/',
sourceMapFilename: '[file].map',
path: path.resolve(__dirname, 'dist'),
},
resolve: {
extensions: ['.js', '.ts', '.css'],
mainFields: [
// rxjs and Angular Package Format
// these are generally shipped as a higher ES language level than `module`
'es2015',
'esm2015',
'fesm2015',

// current leading de-facto standard - see https://github.com/rollup/rollup/wiki/pkg.module
'module',

// previous de-facto standard, superceded by `module`, but still in use by some packages
'jsnext:main',

// Angular Package Format - lower ES level
'esm5',
'fesm5',

// standard package.json fields
'browser',
'main',
],
},
optimization: {
splitChunks: {
Expand Down

0 comments on commit 8824339

Please sign in to comment.