-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Npm run start now works. PostCSS needs some work
- Loading branch information
Showing
28 changed files
with
98 additions
and
500 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
export const isVendor = ({ | ||
resource | ||
}) => | ||
export const isVendor = ({ resource }) => | ||
resource && resource.indexOf('node_modules') >= 0 && resource.match(/.js$/) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { PATHS } from './paths' | ||
|
||
export const alias = { | ||
'@': PATHS.appSrc, | ||
'%': PATHS.sharedDir, | ||
'#': PATHS.stylesDir, | ||
'react-dom': '@hot-loader/react-dom', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const devPerformanceOptions = { | ||
hints: false | ||
hints: false, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,5 @@ export const stats = { | |
modules: false, | ||
publicPath: true, | ||
reasons: true, | ||
warnings: true | ||
warnings: true, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,35 @@ | ||
// const postcssPresetEnv = require('postcss-preset-env'); | ||
|
||
module.exports = { | ||
// This parser (may or may not) remove inline comments (not allowed in .css): // My Comment | ||
// parser: 'postcss-scss', | ||
// plugins: [require('precss'), require('autoprefixer')], | ||
plugins: [], | ||
// plugins: { | ||
// 'postcss-import': { | ||
// path: ['src/shared/styles'], | ||
// }, | ||
// 'postcss-color-function': {}, | ||
// 'postcss-cssnext': { | ||
// browsers: 'last 2 versions', | ||
// warnForDuplicates: false, | ||
// }, | ||
// cssnano: {}, | ||
// }, | ||
plugins: [ | ||
// | ||
require('precss'), | ||
require('autoprefixer'), | ||
require('postcss-color-function'), | ||
require('postcss-import'), | ||
require('postcss-strip-inline-comments'), | ||
require('postcss-preset-env')({ | ||
autoprefixer: { grid: true }, | ||
browsers: 'last 2 versions', | ||
// importFrom: 'path/to/file.css', | ||
/* use stage 3 features + css color-mod (warning on unresolved) */ | ||
stage: 3, | ||
features: { | ||
'color-mod-function': { unresolved: 'warn' }, | ||
}, | ||
}), | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.