Skip to content

Commit 1e80f3e

Browse files
committed
styles css moved to assrts
1 parent e2a68c7 commit 1e80f3e

File tree

7 files changed

+8
-72331
lines changed

7 files changed

+8
-72331
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
node_modules/
22
build/
33
.gitignore
4-
coverage/
4+
coverage/
5+
src/assets/css/main.css

config/paths.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const path = require('path');
33
const paths = {
44
entry: path.resolve(__dirname, '../index'),
55
output: path.resolve(__dirname, '../build'),
6+
assets: path.resolve(__dirname, '../src/assets'),
67
template: path.resolve(__dirname, './template.html'),
78
uielements: path.resolve(__dirname, '../src/uielements'),
89
};

config/webpack.base.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ module.exports = function({ plugins }) {
5656
extensions: ['.js', '.jsx', '.scss', '.css'],
5757
alias: {
5858
uielements: paths.uielements,
59+
assets: paths.assets,
5960
}
6061
},
6162
});

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"build": "npm run build:css && webpack ---config ./config/webpack.prod.config.js",
88
"dev": "npm run watch:css && webpack-dev-server --config ./config/webpack.dev.config.js --open",
99
"lint": "./node_modules/.bin/eslint --ext .js,.jsx src/",
10-
"build:css": "postcss src/styles.css -o src/main.css",
11-
"watch:css": "postcss src/styles.css -o src/main.css",
10+
"build:css": "postcss src/assets/css/styles.css -o src/assets/css/main.css",
11+
"watch:css": "postcss src/assets/css/styles.css -o src/assets/css/main.css",
1212
"test": "jest --collect-coverage",
1313
"test:watch": "jest --watch"
1414
},

src/app.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import React from 'react';
22
import logo from './logo.png';
33
import Button from 'uielements/button/button.component';
4+
import 'assets/css/main.css';
45
import './app.scss';
5-
import './main.css';
6+
67

78
export default function App() {
89
return (
File renamed without changes.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy