Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Не генерируется js.map #65

Open
VictorKrasnov opened this issue Sep 6, 2023 · 0 comments
Open

Не генерируется js.map #65

VictorKrasnov opened this issue Sep 6, 2023 · 0 comments

Comments

@VictorKrasnov
Copy link

Что делать, если после сборки в консоли стабильно выдает ошибку:

[Error] Failed to load resource: the server responded with a status of 403 (Forbidden) (otbor.bundle.js.map, line 0)

Вот такой у меня bundle.config.js:

const vuePlugin = require('rollup-plugin-vue');
const commonjs = require('rollup-plugin-commonjs');
const alias = require('rollup-plugin-alias');
const path = require('path');

const projectRootDir = path.resolve(__dirname);

module.exports = {
	input: 'src/otbor.js',
	output: 'dist/otbor.bundle.js',
	namespace: 'BX.otbor',
	plugins: {
		resolve: true,
		custom: [
			vuePlugin(),
			commonjs(),
			alias({
				resolve: ['.js','.vue'],
				entries: [
					{ find: 'vue', replacement: projectRootDir+'/node_modules/vue/dist/vue.js' }
				]
			})
		],
	}
};

И такой config.php:

<?php
if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true)
{
	die();
}

return [
	'css' => 'dist/otbor.bundle.css',
	'js' => 'dist/otbor.bundle.js',
	'rel' => [
		'main.polyfill.core',
		'v-debounce',
	],
	'skip_core' => true,
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant