chore: components workflow

This commit is contained in:
Mo
2022-06-15 10:11:05 -05:00
parent f076057f4b
commit f33e5db84e
34 changed files with 74 additions and 74 deletions

View File

@@ -8,9 +8,10 @@
"license": "AGPL-3.0",
"scripts": {
"start": "http-server . --cors -p8001 & webpack --progress --config webpack.dev.js",
"compile": "webpack --config webpack.prod.js",
"custom:lint": "eslint src --ext .js",
"custom:lint:fix": "yarn lint --fix"
"components:compile": "webpack --config webpack.prod.js",
"components:lint": "eslint src --ext .js",
"components:lint:fix": "yarn lint --fix",
"components:clean": "rm -rf ./vendor"
},
"devDependencies": {
"@babel/cli": "^7.12.10",
@@ -23,7 +24,6 @@
"eslint": "*",
"http-server": "^0.12.3",
"mini-css-extract-plugin": "^1.3.5",
"remove-files-webpack-plugin": "^1.4.4",
"sass": "*",
"sass-loader": "^10.1.1",
"sn-stylekit": "^2.1.1",

View File

@@ -1,7 +1,6 @@
const path = require('path')
const CopyPlugin = require('copy-webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const RemovePlugin = require('remove-files-webpack-plugin')
module.exports = {
entry: [path.resolve(__dirname, 'src', 'main.js'), path.resolve(__dirname, 'src', 'main.scss')],
@@ -49,14 +48,5 @@ module.exports = {
filename: '[name].css',
chunkFilename: '[id].css',
}),
new RemovePlugin({
/**
* Before compilation, remove existing `./vendor` folder.
* It will be re-created later by the CopyPlugin.
*/
before: {
include: ['./vendor'],
},
}),
],
}