-
Notifications
You must be signed in to change notification settings - Fork 9
Update 'build' command to bundle for production #954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
a42c2dc
Update 'build' command to bundle for production
dafo 94d6420
Setting 'fullySpecified' to false for mjs files
dafo 768dfdf
Merge branch 'master' into amarinov/buildTaskWC
dafo ce216bb
Excluding only node_modules with babel-loader
dafo ed5a882
Merge branch 'master' into amarinov/buildTaskWC
dafo 97b78e1
Adding Stock chart view
dafo ec4975d
Adding linear and radial gauges views
dafo d5d6683
Add grid editing view
dafo 476f2b9
Adding Grid Summaries view
dafo ae4ea27
Adding Form Subscription scenario
dafo e1bccd0
Fixing lint errors
dafo 1b1b15f
Fixing data for grid summaries view
dafo f8c733d
Fixing lint errors
dafo 058747e
Make room for nav scrollbar when window is resized
dafo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
packages/cli/templates/webcomponents/igc-ts/projects/empty/files/webpack.config.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin'; | ||
| import HtmlWebpackPlugin from 'html-webpack-plugin'; | ||
| import path from 'path'; | ||
|
|
||
| const __dirname = path.resolve(); | ||
|
|
||
| export default ({ | ||
|
|
||
| entry: path.resolve(__dirname, 'src'), | ||
| devtool: false, | ||
| output: { | ||
| filename: '[chunkhash].bundle.js', | ||
| }, | ||
|
|
||
| resolve: { | ||
| mainFields: ['fesm2015', 'module', 'main'], | ||
| extensions: ['.ts', '.js', '.json'], | ||
| }, | ||
| module: { | ||
| rules: [{ | ||
| test: /\.m?js/, | ||
| type: "javascript/auto", | ||
| }, | ||
| { | ||
| test: /\.m?js/, | ||
| resolve: { | ||
| fullySpecified: false, | ||
| }, | ||
| }, | ||
| { | ||
| test: /\.(ts|js)$/, | ||
| loader: 'babel-loader', | ||
| options: { | ||
| "compact": true, | ||
| "presets": [ | ||
| ["@babel/preset-env", { | ||
| "useBuiltIns": "usage", | ||
| "corejs": 3, | ||
| "targets": { | ||
| "browsers": [ | ||
| "last 2 Chrome versions", | ||
| "last 2 Safari versions", | ||
| "last 2 iOS versions", | ||
| "last 2 Firefox versions", | ||
| "last 2 Edge versions" | ||
| ] | ||
| } | ||
| }], | ||
| "@babel/preset-typescript" | ||
| ], | ||
| "plugins": [ | ||
| "@babel/plugin-proposal-class-properties", | ||
| "@babel/plugin-transform-runtime" | ||
| ] | ||
| }, | ||
| exclude: | ||
| function(modulePath) { | ||
| return /node_modules/.test(modulePath) && | ||
| !/igniteui-webcomponents/.test(modulePath) && | ||
| !/lit-html/.test(modulePath); | ||
| } | ||
| }], | ||
| }, | ||
|
|
||
| plugins: [ | ||
| new HtmlWebpackPlugin({ | ||
| title: '@@AppName', | ||
| template: './index.html', | ||
| }), | ||
| new ForkTsCheckerWebpackPlugin(), | ||
| ], | ||
| }); | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.