mirror of
https://github.com/kingomarnajjar/gatsby-starter-netlify-cms.git
synced 2026-07-25 22:27:24 +10:00
resolve paths
This commit is contained in:
parent
f53a537347
commit
656ccee6d1
2 changed files with 6 additions and 9 deletions
12
cms/cms.jsx
12
cms/cms.jsx
|
|
@ -1,13 +1,13 @@
|
|||
import React from 'react';
|
||||
import CMS from 'netlify-cms';
|
||||
|
||||
import Features from 'site/components/Features';
|
||||
import Testimonials from 'site/components/Testimonials';
|
||||
import Pricing from 'site/components/Pricing';
|
||||
import Features from '../src/components/Features';
|
||||
import Testimonials from '../src/components/Testimonials';
|
||||
import Pricing from '../src/components/Pricing';
|
||||
|
||||
import { AboutPageTemplate } from 'site/templates/about-page';
|
||||
import { ProductPageTemplate } from 'site/templates/product-page';
|
||||
import { BlogPostTemplate } from 'site/templates/blog-post';
|
||||
import { AboutPageTemplate } from '../src/templates/about-page';
|
||||
import { ProductPageTemplate } from '../src/templates/product-page';
|
||||
import { BlogPostTemplate } from '../src/templates/blog-post';
|
||||
|
||||
const AboutPagePreview = ({ entry, widgetFor }) =>
|
||||
<AboutPageTemplate title={entry.getIn(['data', 'title'])} content={widgetFor('body')} />;
|
||||
|
|
|
|||
|
|
@ -22,9 +22,6 @@ module.exports = {
|
|||
],
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
site: '../src/',
|
||||
},
|
||||
extensions: [
|
||||
'.js',
|
||||
'.jsx',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue