Jump to content

ilhmjv

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by ilhmjv

  1. Hello! How i can compilation each react file in html? I write interfaces for my server, but i don't know how to do this. I writed one config, but it compilation each react file in JS. This is not what i need. My current webpack config: module.exports = { entry: { index: "./src/index.js", app: './src/App.js' }, output: { path: path.resolve(__dirname, 'src/buildInterfaces'), filename: '[name].js' }, module: { rules: [{ test: /\.js$/, exclude: [/node_modules/], loader: 'babel-loader', query: { presets: ['@babel/react'], plugins: ['@babel/proposal-class-properties'] } }, ] }, resolve: { extensions: ['.js', '.json'] }, optimization: { minimize: false }, mode: "production" }
  2. Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema. - configuration.module.rules[0] has an unknown property 'query'. These properties are valid: object { compiler?, dependency?, descriptionData?, enforce?, exclude?, generator?, include?, issuer?, issuerLayer?, layer?, loader?, mimetype?, oneOf?, options?, parser?, realResource?, resolve?, resource?, resourceFragment?, resourceQuery?, rules?, scheme?, sideEffects?, test?, type?, use? } -> A rule description with conditions and effects for modules. How to fix this? here is my code const webpack = require('webpack') const path = require('path') let NODE_ENV = 'production' if (process.env.NODE_ENV) { NODE_ENV = process.env.NODE_ENV.replace(/^\s+|\s+$/g, "") } module.exports = { entry: './src/App.js', output: { path: path.resolve(__dirname, 'src/buildInterfaces'), filename: '[name].js' }, module: { rules: [{ test: /\.js$/, exclude: [/node_modules/], loader: 'babel-loader', query: { presets: ['react', 'es2015'] } }, ] }, resolve: { extensions: ['.js', '.json'] }, optimization: { minimize: false }, mode: NODE_ENV, plugins: [ new webpack.EnvironmentPlugin('NODE_ENV') ] }
  3. This is sad( I don't finded each clothe for deputy sheriff/police officer outfit. Maybe i wait other people. Thanks for you answer.
  4. Hello everybody. I cannot give "csb_cop" to the player when he chooses the sheriff's department. How can i do this? Method "player.setClothes()" is not help in this situation. Maybe i take not correct id? https://wiki.rage.mp/index.php?title=Category:Clothes this division from documentation is not have information which would helped me.
×
×
  • Create New...