Skip to content

Commit

Permalink
add copy-webpack-plugin, correct the assets name
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisfu committed Apr 20, 2021
1 parent 434d618 commit 4da9eab
Show file tree
Hide file tree
Showing 24 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion analysis/bundle-analyzer.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="/assests/css/rv-styles.css" />
<link rel="stylesheet" href="/assets/css/rv-styles.css" />
</head>
<body>
<div
Expand Down
4 changes: 2 additions & 2 deletions src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import icon from 'leaflet/dist/images/marker-icon.png';
import iconShadow from 'leaflet/dist/images/marker-shadow.png';
import mappingReducer from './reducers/reducer';
import { loadState, saveState } from './reducers/localStorage';
import i18n from './assests/i18n/i18n';
import i18n from './assets/i18n/i18n';

import Header from './components/header/header';
import { Map } from './components/map/map';
Expand All @@ -21,7 +21,7 @@ import MetaDataPage from './components/search/metadatapage';
import RampViewer from './components/rampviewer/rampviewer';

import '../node_modules/leaflet/dist/leaflet.css';
import './assests/css/style.scss';
import './assets/css/style.scss';

import authconfig from './components/account/cognito-auth/config.json';

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
2 changes: 1 addition & 1 deletion src/components/appbar/app-bar.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../assests/css/variables-site/variables-site';
@import '../../assets/css/variables-site/variables-site';

.cgp-appbar {
height: calc(100% - 20px);
Expand Down
2 changes: 1 addition & 1 deletion src/components/header/header.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../assests/css/variables-site/variables-site';
@import '../../assets/css/variables-site/variables-site';

.header {
position: fixed;
Expand Down
4 changes: 2 additions & 2 deletions src/components/header/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import { StoreEnhancer } from 'redux';
import { useLocation, useHistory } from 'react-router';
import { Collapse, Button } from 'reactstrap';
import { useTranslation } from 'react-i18next';
import i18n from '../../assests/i18n/i18n';
import i18n from '../../assets/i18n/i18n';
import { loadState } from '../../reducers/localStorage';
import logo from '../../assests/img/GeoDotCaBanner.jpg';
import logo from '../../assets/img/GeoDotCaBanner.jpg';
import { getQueryParams } from '../../common/queryparams';
import './header.scss';
// Reacstrap Collapse - Responsive Navbar
Expand Down
2 changes: 1 addition & 1 deletion src/components/pagination/pagination.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../assests/css/variables-site/variables-site';
@import '../../assets/css/variables-site/variables-site';

.pagination-container {
font-size: 0.875rem;
Expand Down
2 changes: 1 addition & 1 deletion src/components/rampviewer/rampviewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const RampViewer = (rv: string): JSX.Element => {
useEffect(() => {
const rvScript = document.getElementById("rvJS");
if (!rvScript) {
appendScript({id: "rvJS", scriptToAppend: "/assests/js/rv-main.jsx" });
appendScript({id: "rvJS", scriptToAppend: "/assets/js/rv-main.jsx" });
}
}, [language]);

Expand Down
2 changes: 1 addition & 1 deletion src/components/search/keywordsearch.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../assests/css/variables-site/variables-site';
@import '../../assets/css/variables-site/variables-site';

.pageContainer.keyword-search-page {
margin-top: 89px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/search/metadatapage.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../assests/css/variables-site/variables-site';
@import '../../assets/css/variables-site/variables-site';

.container-search-result {
font-family: 'Open Sans', sans-serif;
Expand Down
2 changes: 1 addition & 1 deletion src/components/searchfilter/searchfilter.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../assests/css/variables-site/variables-site';
@import '../../assets/css/variables-site/variables-site';

// Active Search Filter Section
.btn-group-search-filters-active {
Expand Down
4 changes: 2 additions & 2 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ const config = {
new CopyWebpackPlugin({
patterns: [
{
from: "public/assests",
to: "dist/assests"
from: "public/assets",
to: "dist/assets"
}
]
}),
Expand Down

0 comments on commit 4da9eab

Please sign in to comment.