move styles from view folder to assets

This commit is contained in:
Alina Beck 2019-11-20 16:13:07 +03:00
parent 70bfd9d70c
commit 0727c3314d
4 changed files with 3 additions and 4 deletions

View File

@ -98,10 +98,9 @@ We are currently in the process of migrating our styleguide components and desig
The folder structure we are following is [prescribed by Nuxt.js](https://nuxtjs.org/guide/directory-structure):
- **assets** contains icons, images and logos in `svg` format
- **assets** contains icons, images and logos in `svg` format and all shared SCSS files such as `tokens`
- **components** separated into two sub-folders:
- **generics** are the generic building blocks of the app small, reusable and usually not coupled to state
- **features** are composed of components but tied to a particular function of the app (e.g. `comment` or `post`)
- **layouts** can use components to create layout templates for pages
- **pages** are the entry points for all `routes` in the app and are composed of layouts, features and components
- **styles** holds all shared SCSS files such as `variables` and `mixins`

View File

@ -100,7 +100,7 @@ export default {
** Global processed styles
*/
styleResources: {
scss: [styleguideStyles, '~view/styles/tokens.scss'],
scss: [styleguideStyles, '~assets/_new/styles/tokens.scss'],
},
/*

View File

@ -23,7 +23,7 @@ module.exports = async ({ config, mode }) => {
__dirname,
'../node_modules/@human-connection/styleguide/dist/shared.scss',
),
path.resolve(__dirname, '../view/styles/tokens.scss'),
path.resolve(__dirname, '../assets/_new/styles/tokens.scss'),
],
injector: 'prepend',
},