added print tool to cards
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
||||
const { VueLoaderPlugin } = require('vue-loader')
|
||||
const ESLintPlugin = require('eslint-webpack-plugin');
|
||||
const ExtraneousFileCleanupPlugin = require('webpack-extraneous-file-cleanup-plugin');
|
||||
|
||||
const utils = require('./utils')
|
||||
|
||||
@@ -21,6 +22,7 @@ module.exports = {
|
||||
},
|
||||
entry: {
|
||||
'main': utils.resolve(themePath + '/assets/scripts/main.js'),
|
||||
'print': utils.resolve(themePath + '/assets/styles/print.scss')
|
||||
},
|
||||
output: {
|
||||
path: utils.resolve(themePath + '/assets/dist/'),
|
||||
@@ -100,6 +102,10 @@ module.exports = {
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// {
|
||||
// test: /\.css$/,
|
||||
// use: [MiniCssExtractPlugin.loader, 'css-loader'],
|
||||
// },
|
||||
]
|
||||
},
|
||||
|
||||
@@ -114,6 +120,11 @@ module.exports = {
|
||||
// cache: false,
|
||||
// ignore: true,
|
||||
// useEslintrc: false,
|
||||
}),
|
||||
new ExtraneousFileCleanupPlugin({
|
||||
extensions: ['.js'],
|
||||
paths: [utils.resolve(themePath + '/assets/dist/')],
|
||||
minBytes: 4096
|
||||
})
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user