Skip to content

Commit

Permalink
transfer imports to app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Полина Белякаева authored and Полина Белякаева committed Feb 7, 2024
1 parent 0c9269d commit 3a44bf9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@hexlet/code",
"version": "1.0.0",
"description": "[![Actions Status](https://github.com/polina-belyakaeva/frontend-project-11/actions/workflows/hexlet-check.yml/badge.svg)](https://github.com/polina-belyakaeva/frontend-project-11/actions)",
"main": "index.js",
"main": "src/index.js",
"scripts": {
"test": "npx jest",
"lint": "eslint . --ext .js",
Expand Down Expand Up @@ -41,4 +41,4 @@
"on-change": "^5.0.1",
"yup": "^1.3.3"
}
}
}
2 changes: 0 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import './styles.scss';
import 'bootstrap';
import * as yup from 'yup';
import onChange from 'on-change';
import i18n from 'i18next';
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import './styles.scss';
import 'bootstrap';
import app from './app.js';

app();
3 changes: 2 additions & 1 deletion webpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ module.exports = {
},
},
},
{ test: /\.css$/, use: ['style-loader', 'css-loader', 'postcss-loader'] },
{ test: /\.css$/,
use: ['style-loader', 'css-loader', 'postcss-loader'] },
{
test: /\.scss$/,
use: ['style-loader', 'css-loader', 'sass-loader', 'postcss-loader'],
Expand Down

0 comments on commit 3a44bf9

Please sign in to comment.