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

Refactor webpack.config.js #39

Merged
merged 35 commits into from
Aug 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
d412525
独自のdev server立てるのやめて webpack-dev-server を使う
mizdra Aug 30, 2020
bd77c74
HMR捨てる
mizdra Aug 30, 2020
08cce64
update webpack toolchain
mizdra Aug 30, 2020
2be125d
webpack-mergeのbreaking changes対応
mizdra Aug 30, 2020
33434da
extract-text-webpack-pluginではなくmini-css-extract-pluginを使うことが推奨されるようになった
mizdra Aug 30, 2020
a7e54ab
loaderもアップデートする
mizdra Aug 30, 2020
ae384a2
awesome-typescript-loaderはもう使っていない
mizdra Aug 30, 2020
d687283
update typescript
mizdra Aug 30, 2020
390bbd3
update vue-template-compiler
mizdra Aug 30, 2020
ba1ac79
vue-loaderのbreaking changesに対応
mizdra Aug 30, 2020
38e7d45
update vue
mizdra Aug 30, 2020
0333344
型の付け方が変わった
mizdra Aug 30, 2020
fe31d26
update eslint toolchain
mizdra Aug 30, 2020
bbaca15
typescript-eslint-parserは@typescript-eslint/parserへと置き換えられた
mizdra Aug 30, 2020
adad845
 yarn run lint --fix
mizdra Aug 30, 2020
4d6820a
その他のlintエラーを修正
mizdra Aug 30, 2020
c0e55c7
wrapperを噛ませず直接webpackコマンドを叩いてビルドする
mizdra Aug 30, 2020
edbd730
CopyWebpackPluginのbreaking changesに対応
mizdra Aug 30, 2020
065081d
modeを付ける
mizdra Aug 30, 2020
49f0362
開発用と本番用のwebpack.config.jsを結合
mizdra Aug 30, 2020
c3edd0f
testは存在するものの全く運用されていないので廃止する
mizdra Aug 30, 2020
36a6b3b
使っていないpackageを削除
mizdra Aug 30, 2020
0023c85
eslintが失敗する問題を修正
mizdra Aug 30, 2020
2ba7dc1
fallback対応忘れてた
mizdra Aug 30, 2020
2c79cbf
webpack.config.jsの中で開発/本番ビルドの判定にはargv.modeを使う
mizdra Aug 30, 2020
6cc4ad6
cssが読み込めるように
mizdra Aug 30, 2020
0f22364
imgタグから画像がrequireできるように
mizdra Aug 30, 2020
6b67aa7
update postcss-cssnext
mizdra Aug 30, 2020
553f5d4
postcssの設定の書き方が変わった
mizdra Aug 30, 2020
4f2bda0
よくわからないけどcss読み込まれるようになったのでヨシ
mizdra Aug 30, 2020
9287b24
使っていないパッケージを削除
mizdra Aug 30, 2020
7398b2c
vue-style-loaderの挙動が意味不明なのでやめる
mizdra Aug 30, 2020
4556bc0
使っていないパッケージを削除
mizdra Aug 30, 2020
bcb1b1a
音がならない問題を修正
mizdra Aug 30, 2020
44fe1c8
:root は scoped では機能しない
mizdra Aug 30, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,33 @@ module.exports = {
],
parser: 'vue-eslint-parser',
parserOptions: {
parser: 'typescript-eslint-parser',
parser: '@typescript-eslint/parser',
},
env: {
browser: true,
},
// check if imports actually resolve
'settings': {
settings: {
'import/resolver': {
'webpack': {
'config': 'config/webpack.base.conf.js',
webpack: {
config: 'webpack.config.js',
},
},
},
// add your custom rules here
'rules': {
rules: {
'no-undef': 'off',
'no-unused-vars': 'off',
'no-use-before-define': 'off',
'import/extensions': ['error', 'always', {
'js': 'never',
'ts': 'never',
js: 'never',
ts: 'never',
'd.ts': 'never',
}],
'object-shorthand': ['off', 'properties'],
'func-names': ['error', 'as-needed'],
'max-len': ['off'],
'comma-dangle': ['error', 'always-multiline'],
'vue/max-attributes-per-line': 'off',
}
},
}
7 changes: 0 additions & 7 deletions .postcssrc.js

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@ $ yarn run dev
## npm-scripts
- `yarn run dev`: Start webpack-dev-server
- `yarn run lint`: Lint project
- `yarn run test`: Test project
- `yarn run build`: Build for production
- If necessary, you can serve production: `npx http-server dist/`
19 changes: 0 additions & 19 deletions config/build.js

This file was deleted.

20 changes: 0 additions & 20 deletions config/config.js

This file was deleted.

47 changes: 0 additions & 47 deletions config/dev.js

This file was deleted.

94 changes: 0 additions & 94 deletions config/webpack.base.conf.js

This file was deleted.

33 changes: 0 additions & 33 deletions config/webpack.dev.conf.js

This file was deleted.

39 changes: 0 additions & 39 deletions config/webpack.prod.conf.js

This file was deleted.

5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
<meta name="keywords" content="エメタイマー,ポケモン,タイマー,乱数調整,HTML,Flash">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="theme-color" content="#009688">
<link rel="manifest" href="./manifest.json">
<link rel="icon" type="image/x-icon" href="./img/icon.ico">
<link rel="manifest" href="/manifest.json">
<link rel="icon" type="image/x-icon" href="/img/icon.ico">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
<link rel="stylesheet" href="/app.css">

<noscript>
<!-- For PWA -->
Expand Down
Loading