Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Commit

Permalink
Merge pull request #22 from Synthetixio/webpack-path
Browse files Browse the repository at this point in the history
Fix webpack path
  • Loading branch information
fritzschoff authored Apr 14, 2022
2 parents 4b3cf20 + 12d8253 commit 06cdc08
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 10 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"ts-loader": "^9.2.8",
"typescript": "4.5.5",
"webpack": "^5.70.0",
"webpack-auto-export": "^0.1.0",
"webpack-cli": "^4.9.2",
"yalc": "1.0.0-pre.53"
},
Expand Down
12 changes: 12 additions & 0 deletions src/components/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export * from './Accordion';
export * from './Button';
export * from './Card';
export * from './Carousel';
export * from './Dropdown';
export * from './ExternalLink';
export * from './IconButton';
export * from './Icons';
export * from './LinkButton';
export * from './Selector';
export * from './Tabs';
export * from './TextInput';
6 changes: 0 additions & 6 deletions src/styles/fonts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,4 @@ export default {
`,
regular: `Inter`,
interBold: `Inter Bold`,
interSemiBold: `Inter Semi Bold`,
mono: `GT America Mono`,
condensedBold: `GT America Condensed-Bold`,
condensedMedium: `GT America Condensed-Medium`,
extended: `GT America Extended Bold`,
expanded: `GT America Expanded Black`,
};
13 changes: 9 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
const path = require('path');
const AutoExport = require('webpack-auto-export');

module.exports = {
entry: './src/index.ts',
mode: 'production',
plugins: [
new AutoExport({
extension: '.js', // define extension of generated index file
exportType: 'named', // the default way to export. values can be: 'named' | 'default' | 'detect'
baseDir: './src', // base directory to observe the changes
paths: ['components'],
}),
],
module: {
rules: [
{
Expand Down Expand Up @@ -37,8 +46,4 @@ module.exports = {
resolve: {
extensions: ['.tsx', '.ts', '.js', '.css', '.woff', '.woff2'],
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].js',
},
};
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12493,6 +12493,11 @@ webidl-conversions@^3.0.0:
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
integrity sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=

webpack-auto-export@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/webpack-auto-export/-/webpack-auto-export-0.1.0.tgz#21db6752619d102333f30a725c0f084d4e068400"
integrity sha512-vt4WK2lIIxU3sr+zK81pdcW3qSBdkFXKfsO0Yy/T8zHntO3RXbdUX+vcc3TQfQ1V1JfRCGUyLPEQ4w3j0HnHMQ==

webpack-cli@^4.9.2:
version "4.9.2"
resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-4.9.2.tgz#77c1adaea020c3f9e2db8aad8ea78d235c83659d"
Expand Down

0 comments on commit 06cdc08

Please sign in to comment.