Skip to content
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

Update #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update #1

wants to merge 1 commit into from

Conversation

faire2
Copy link

@faire2 faire2 commented Mar 11, 2022

  • updatovany ikony
  • pridany nove komponenty (resp. styly pro ne)
  • updatovany dependencies

Comment on lines 11 to 13
path.join(
__dirname,
'..',
'sass/muil.sass',
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

__dirname + '../sass/... bude imho přehlednější. S lomítkama na windows problémy myslím nejsou (nikdy sem je neřešil)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rád to změním, ale jde to proti tomuhle:

As a lot of answers have pointed out, using path module is probably the best way. However, most of the solutions here have gone back to using slashes like:

path.join(__dirname+'../test/karma.conf.js')

However, by doing this, you're beating the purpose of using path. One uses path to do operations irrespective of the underlying OS (Linux, Windows etc). Just to give a bit of insight, you can do the path operations directly as string operations (like __dirname + '../test/karma.conf.js'. You do not do this because Linux uses forward slashes ( / ), Windows uses backward slashes ( \ ). This makes your application prone to errors when you port it across operating systems.

https://stackoverflow.com/questions/30845416/how-to-go-back-1-folder-level-with-dirname

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tak v tom případě path.join(__dirname, '..', 'sass', 'muil.sass') aby to mělo smysl? A teda všude?

},
output: {
path: __dirname + '/../build',
filename: '[name].min.js',
},
optimization: {
chunkIds: 'total-size', moduleIds: 'size'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jednu property na řádek a trailing comma pls

Copy link
Contributor

@zdhr zdhr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Projdi prosím diffy jednotlivých ikon a zkus je minmalizovat.

Popravdě netuším moc jak důležitý viewBox vs width & height, ale některé prohlížeče na to byly háklivé a imho by se to nemělo měnit.

Kromě log žádná z ikon nemá fill, to je tu naschvál a dodržoval bych to dál.

Ty cesty v configu udělej jak uznáš za vhodné, jenom ať je to konzistentně.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants