Skip to content

Commit

Permalink
[NO JIRA]: Update compliation of stylesheets (#3707)
Browse files Browse the repository at this point in the history
  • Loading branch information
olliecurtis authored Jan 10, 2025
1 parent 43800b5 commit b39d427
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"build": "run-s build:*",
"build:gulp": "gulp",
"build:unstable__bpk-mixins": "./scripts/scss/generate-unstable__bpk-mixins.sh",
"build:sass": "node scripts/scss/styles-prod.js && rm packages/bpk-stylesheets/index.css",
"build:sass": "node scripts/scss/styles-prod.js",
"build:stylesheets": "(cd packages/bpk-stylesheets && node build)",
"check-bpk-dependencies": "node scripts/npm/check-bpk-dependencies.js",
"check-react-versions": "node scripts/npm/check-react-versions.js",
Expand Down Expand Up @@ -55,9 +55,9 @@
"transpile:clean": "rm -rf ./dist",
"transpile:js": "BABEL_ENV=dev babel packages --ignore ./packages/bpk-stylesheets --out-dir dist --extensions \".ts,.tsx,.js,.jsx\" --config-file ./babel.config.js",
"transpile:dts": "tsc --project tsconfig.declaration.json",
"transpile:imports": "node scripts/transpilation/transform-js-scss-css-imports.js",
"transpile:copy-css": "node scripts/transpilation/copy-css.js",
"transpile:copy-utils": "node scripts/transpilation/copy-utils.js",
"transpile:imports": "node scripts/transpilation/transform-js-scss-css-imports.js",
"transpile:copy-package-json": "cp ./packages/package.json ./dist/",
"transpile:copy-readme": "cp packages/README.md ./dist/"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/bpk-stylesheets/webpack.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,8 @@ module.exports = {
new MiniCssExtractPlugin({
filename: 'base.css',
}),
new MiniCssExtractPlugin({
filename: 'index.css',
}),
],
};
2 changes: 1 addition & 1 deletion scripts/transpilation/transform-js-scss-css-imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ console.log('Crunching import paths...');
// eslint-disable-next-line no-console
console.log('');

const findReplaces = [{ find: '.module.scss', replace: '.module.css' }];
const findReplaces = [{ find: '.scss', replace: '.css' }];

const jsFiles = execSync(
'find dist -name "*.js" -o -name "*.jsx" -name "*.ts" -o -name "*.tsx" | grep -v node_modules',
Expand Down

0 comments on commit b39d427

Please sign in to comment.