chore: components workflow
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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'],
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user