Skip to content

Commit a950f5d

Browse files
committed
fix: removed dead code
1 parent 2cad225 commit a950f5d

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

webpack.config.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
// const fs = require('fs');
21
const path = require('path');
32
const CoCreateConfig = require('./CoCreate.config')
4-
const { ModuleGenerator, fileUploader, SymlinkCreator } = require('@cocreate/webpack')
3+
const { ModuleGenerator, fileUploader, SymlinkCreator, escapeCharacters } = require('@cocreate/webpack')
54

65

76
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
@@ -11,9 +10,6 @@ const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
1110

1211
module.exports = async (env, argv) => {
1312
const isProduction = argv.mode === 'production'
14-
const isWatch = argv.watch === true;
15-
let isWatching = false
16-
1713
const config = {
1814
// Path to your entry point. From this file Webpack will begin his work
1915
entry: {
@@ -34,7 +30,7 @@ module.exports = async (env, argv) => {
3430

3531
plugins: [
3632
new ModuleGenerator(CoCreateConfig.modules),
37-
new fileUploader(env),
33+
new fileUploader(env, argv),
3834
new SymlinkCreator(),
3935
new CleanWebpackPlugin(),
4036
new MiniCssExtractPlugin({
@@ -64,7 +60,7 @@ module.exports = async (env, argv) => {
6460
test: /\.js$/,
6561
use: [
6662
{
67-
loader: path.resolve(__dirname, 'node_modules/@cocreate/cli/src/loaders/replace-unicode.js')
63+
loader: path.resolve(__dirname, 'node_modules/@cocreate/webpack/src/replace-unicode.js')
6864
},
6965
{
7066
loader: 'babel-loader',
@@ -93,9 +89,7 @@ module.exports = async (env, argv) => {
9389
}
9490
}
9591
]
96-
}
97-
98-
]
92+
}]
9993
},
10094

10195
optimization: {

0 commit comments

Comments
 (0)