2018-03-27 15:33:44 +00:00
|
|
|
let path = require('path');
|
2017-12-04 15:37:16 +00:00
|
|
|
|
|
|
|
module.exports = {
|
2018-05-17 18:45:01 +00:00
|
|
|
entry: {
|
2020-01-14 13:43:26 +00:00
|
|
|
admin: './src/views/admin/js/main.js',
|
2020-01-14 14:40:37 +00:00
|
|
|
theme_search: './src/views/theme-search/js/theme-main.js',
|
2020-05-25 19:54:23 +00:00
|
|
|
item_submission: './src/views/item-submission/js/item-submission-main.js',
|
2020-01-14 13:43:26 +00:00
|
|
|
roles: './src/views/roles/js/roles-main.js',
|
2021-02-10 15:12:27 +00:00
|
|
|
reports: './src/views/reports/js/reports-main.js',
|
2019-07-24 20:02:25 +00:00
|
|
|
|
2020-01-14 14:54:32 +00:00
|
|
|
block_terms_list: './src/views/gutenberg-blocks/tainacan-terms/terms-list/index.js',
|
2019-07-24 20:02:25 +00:00
|
|
|
|
2020-01-14 14:54:32 +00:00
|
|
|
block_items_list: './src/views/gutenberg-blocks/tainacan-items/items-list/index.js',
|
2019-07-24 20:02:25 +00:00
|
|
|
|
2020-01-14 14:54:32 +00:00
|
|
|
block_dynamic_items_list: './src/views/gutenberg-blocks/tainacan-items/dynamic-items-list/index.js',
|
|
|
|
block_dynamic_items_list_theme: './src/views/gutenberg-blocks/tainacan-items/dynamic-items-list/dynamic-items-list-theme.js',
|
2019-07-24 20:02:25 +00:00
|
|
|
|
2020-01-14 14:54:32 +00:00
|
|
|
block_carousel_items_list: './src/views/gutenberg-blocks/tainacan-items/carousel-items-list/index.js',
|
|
|
|
block_carousel_items_list_theme: './src/views/gutenberg-blocks/tainacan-items/carousel-items-list/carousel-items-list-theme.js',
|
2019-07-24 20:02:25 +00:00
|
|
|
|
2020-01-14 14:54:32 +00:00
|
|
|
block_search_bar: './src/views/gutenberg-blocks/tainacan-items/search-bar/index.js',
|
|
|
|
block_search_bar_script: './src/views/gutenberg-blocks/tainacan-items/search-bar/search-bar-theme-script.js',
|
2019-07-24 20:02:25 +00:00
|
|
|
|
2020-01-14 14:54:32 +00:00
|
|
|
block_collections_list: './src/views/gutenberg-blocks/tainacan-collections/collections-list/index.js',
|
2019-07-24 20:02:25 +00:00
|
|
|
|
2020-01-14 14:54:32 +00:00
|
|
|
block_carousel_collections_list: './src/views/gutenberg-blocks/tainacan-collections/carousel-collections-list/index.js',
|
|
|
|
block_carousel_collections_list_theme: './src/views/gutenberg-blocks/tainacan-collections/carousel-collections-list/carousel-collections-list-theme.js',
|
2019-08-22 14:48:34 +00:00
|
|
|
|
2020-01-14 14:54:32 +00:00
|
|
|
block_facets_list: './src/views/gutenberg-blocks/tainacan-facets/facets-list/index.js',
|
|
|
|
block_facets_list_theme: './src/views/gutenberg-blocks/tainacan-facets/facets-list/facets-list-theme.js',
|
2020-05-27 17:38:14 +00:00
|
|
|
|
|
|
|
block_item_submission_form: './src/views/gutenberg-blocks/tainacan-items/item-submission-form/index.js',
|
|
|
|
|
2020-02-18 18:39:33 +00:00
|
|
|
block_faceted_search: './src/views/gutenberg-blocks/tainacan-facets/faceted-search/index.js',
|
|
|
|
|
2020-01-14 14:54:32 +00:00
|
|
|
block_carousel_terms_list: './src/views/gutenberg-blocks/tainacan-terms/carousel-terms-list/index.js',
|
2020-04-29 20:54:16 +00:00
|
|
|
block_carousel_terms_list_theme: './src/views/gutenberg-blocks/tainacan-terms/carousel-terms-list/carousel-terms-list-theme.js',
|
2019-09-30 19:51:24 +00:00
|
|
|
|
2020-11-30 15:01:50 +00:00
|
|
|
tainacan_blocks_category_icon: './src/views/gutenberg-blocks/js/tainacan-blocks-category-icon.js'
|
2018-01-23 14:42:01 +00:00
|
|
|
},
|
2017-12-04 15:37:16 +00:00
|
|
|
output: {
|
2020-01-14 16:26:15 +00:00
|
|
|
path: path.resolve(__dirname, './src/assets/js/'),
|
|
|
|
publicPath: './src/assets/js/',
|
2020-01-13 16:47:07 +00:00
|
|
|
filename: '[name].js'
|
2017-12-04 15:37:16 +00:00
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
2018-03-23 13:20:37 +00:00
|
|
|
{
|
|
|
|
enforce: "pre",
|
|
|
|
test: /\.vue$/,
|
|
|
|
exclude: /node_modules/,
|
2018-03-23 16:18:13 +00:00
|
|
|
loader: "eslint-loader",
|
|
|
|
options: {
|
|
|
|
fix: false,
|
|
|
|
},
|
2018-03-23 13:20:37 +00:00
|
|
|
},
|
2017-12-04 15:37:16 +00:00
|
|
|
{
|
|
|
|
test: /\.vue$/,
|
2020-01-14 17:08:31 +00:00
|
|
|
exclude: /node_modules/,
|
2018-04-24 18:27:08 +00:00
|
|
|
loader: 'vue-loader'
|
2017-12-04 15:37:16 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
2020-01-14 17:08:31 +00:00
|
|
|
exclude: /node_modules/,
|
2018-01-26 14:17:30 +00:00
|
|
|
loader: 'babel-loader',
|
2017-12-04 15:37:16 +00:00
|
|
|
},
|
|
|
|
{
|
2018-11-13 14:05:48 +00:00
|
|
|
test: /\.(png|jpg|jpeg|gif|eot|ttf|otf|woff|woff2|svg|svgz)(\?.+)?$/,
|
2018-01-26 14:17:30 +00:00
|
|
|
loader: 'file-loader'
|
2018-01-23 14:42:01 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.css$/,
|
2018-05-18 15:44:07 +00:00
|
|
|
use: [
|
|
|
|
'vue-style-loader',
|
|
|
|
'css-loader',
|
|
|
|
'postcss-loader',
|
|
|
|
],
|
2018-02-22 19:10:10 +00:00
|
|
|
},
|
|
|
|
{
|
2018-05-18 15:44:07 +00:00
|
|
|
test: /\.s[ac]ss$/,
|
2020-01-14 17:08:31 +00:00
|
|
|
exclude: /node_modules/,
|
2018-05-18 15:44:07 +00:00
|
|
|
use: [
|
|
|
|
{
|
|
|
|
loader: 'style-loader',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
loader: 'css-loader'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
loader: 'sass-loader',
|
|
|
|
options: {
|
2020-01-14 13:43:26 +00:00
|
|
|
includePaths: [path.resolve(__dirname, './src/views/admin/scss/_variables.scss')]
|
2018-05-18 15:44:07 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
],
|
2017-12-04 15:37:16 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2018-03-23 18:44:00 +00:00
|
|
|
node: {
|
2018-03-28 18:21:13 +00:00
|
|
|
fs: 'empty',
|
|
|
|
net: 'empty',
|
|
|
|
tls: 'empty'
|
2018-03-23 18:44:00 +00:00
|
|
|
},
|
2018-03-27 15:33:44 +00:00
|
|
|
performance: {
|
|
|
|
hints: false
|
2018-03-27 18:58:52 +00:00
|
|
|
}
|
2020-11-19 19:22:43 +00:00
|
|
|
};
|