Skip to content

Commit

Permalink
fix: cleaning config to work with default cache folder
Browse files Browse the repository at this point in the history
  • Loading branch information
adamszalapski committed Sep 13, 2019
1 parent 15db25c commit 8e84b83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 41 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ _tests
!*.map
!*/*.map
.sass-cache
.webpack-cache
cache
*.css.map
*.idea
Expand Down
46 changes: 6 additions & 40 deletions packages/build-tools/create-webpack-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,7 @@ async function createWebpackConfig(buildConfig) {
}

const scssLoaders = [
{
loader: 'cache-loader',
options: {
cacheDirectory: './.webpack-cache',
},
},
'cache-loader',
{
loader: 'css-loader',
options: {
Expand Down Expand Up @@ -278,12 +273,7 @@ async function createWebpackConfig(buildConfig) {
{
test: /\.(ts|tsx)$/,
use: [
{
loader: 'cache-loader',
options: {
cacheDirectory: './.webpack-cache',
},
},
'cache-loader',
{
loader: 'ts-loader',
options: {
Expand Down Expand Up @@ -314,12 +304,7 @@ async function createWebpackConfig(buildConfig) {
test: /\.(js|tsx|mjs)$/,
exclude: /(node_modules\/\@webcomponents\/webcomponentsjs\/custom-elements-es5-adapter\.js)/,
use: [
{
loader: 'cache-loader',
options: {
cacheDirectory: './.webpack-cache',
},
},
'cache-loader',
{
loader: 'babel-loader',
options: {
Expand All @@ -333,12 +318,7 @@ async function createWebpackConfig(buildConfig) {
{
test: /\.(woff|woff2)$/,
use: [
{
loader: 'cache-loader',
options: {
cacheDirectory: './.webpack-cache',
},
},
'cache-loader',
{
loader: 'url-loader',
options: {
Expand All @@ -351,12 +331,7 @@ async function createWebpackConfig(buildConfig) {
{
test: /\.(cur|svg)$/,
use: [
{
loader: 'cache-loader',
options: {
cacheDirectory: './.webpack-cache',
},
},
'cache-loader',
{
loader: 'file-loader',
options: {
Expand All @@ -367,16 +342,7 @@ async function createWebpackConfig(buildConfig) {
},
{
test: [/\.yml$/, /\.yaml$/],
use: [
{
loader: 'cache-loader',
options: {
cacheDirectory: './.webpack-cache',
},
},
'json-loader',
'yaml-loader',
],
use: ['cache-loader', 'json-loader', 'yaml-loader'],
},
],
},
Expand Down

0 comments on commit 8e84b83

Please sign in to comment.