Skip to content
Merged

Next #352

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions loaders/skip-loader.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = function skipLoader() {
return ''
}
15 changes: 2 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nullstack",
"version": "0.19.0",
"version": "0.19.1",
"description": "Feature-Driven Full Stack JavaScript Components",
"main": "./types/index.d.ts",
"author": "Mortaro",
Expand All @@ -15,15 +15,6 @@
"lint": "eslint \"**/*.{js,jsx,ts,tsx,njs,nts}\" --fix"
},
"dependencies": {
"@babel/core": "^7.18.13",
"@babel/parser": "7.20.15",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-export-default-from": "^7.18.10",
"@babel/plugin-transform-react-jsx": "^7.18.10",
"@babel/plugin-transform-typescript": "^7.18.12",
"@babel/preset-env": "^7.18.10",
"@babel/preset-react": "^7.18.6",
"@babel/traverse": "7.20.13",
"@swc/core": "1.3.35",
"babel-loader": "9.1.2",
"body-parser": "1.20.1",
Expand All @@ -45,11 +36,9 @@
"swc-loader": "0.2.3",
"swc-plugin-nullstack": "0.1.3",
"terser-webpack-plugin": "5.3.6",
"time-analytics-webpack-plugin": "^0.1.20",
"webpack": "^5.0.0",
"webpack-dev-server": "4.11.1",
"webpack-hot-middleware": "^2.25.3",
"ws": "8.12.0"
"webpack-hot-middleware": "^2.25.3"
},
"devDependencies": {
"webpack-dev-middleware": "github:Mortaro/webpack-dev-middleware#fix-write-to-disk-cleanup"
Expand Down
8 changes: 6 additions & 2 deletions webpack/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,12 @@ function scss(options) {
}

function css(options) {
if (options.target !== 'client') return

if (options.target !== 'client') {
return {
test: /\.s?[ac]ss$/,
loader: path.posix.join(options.configFolder, 'loaders', 'skip-loader.js'),
}
}
const { loader } = require('mini-css-extract-plugin')
return {
test: /\.s?[ac]ss$/,
Expand Down