We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I added webpack to my meteor.js project with a hard time. and successfully runing now. but I'm facing now another issue.
Here is my webpack.config.js file
webpack.config.js
const path = require("path"); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const meteorExternals = require('webpack-meteor-externals'); const nodeExternals = require('webpack-node-externals'); const clientConfig = { entry: './startup/client/main.jsx', module: { rules: [ { test: /\.mjs$/, include: /node_modules/, type: 'javascript/auto' }, { test: /\.(js|jsx)$/, exclude: /node_modules/, options: { presets: ['@babel/preset-env', '@babel/preset-react'], plugins: ['@babel/plugin-proposal-object-rest-spread'] }, loader: 'babel-loader' }, { test: /\.(graphql|gql)$/, exclude: /node_modules/, loader: 'graphql-tag/loader' }, { test: /\.css$/, use: ['style-loader', 'css-loader'] } ] }, plugins: [ new HtmlWebpackPlugin({ template: './startup/client/main.html' }), new webpack.HotModuleReplacementPlugin() ], resolve: { extensions: ['*', '.mjs', '.js', '.jsx', '.json', '.gql', '.graphql'] }, externals: [meteorExternals()], devServer: { hot: 'only' } }; const serverConfig = { entry: ['./startup/server/index.js'], target: 'node', devServer: { stats: { chunks: false }, hot: 'only' }, externals: [meteorExternals(), nodeExternals({ modulesDir: path.resolve(__dirname, 'node_modules') })] }; module.exports = [clientConfig, serverConfig];
and .babelrc
.babelrc
{ "presets": ["@babel/preset-env", "@babel/preset-react"], "plugins": ["react-hot-loader/babel", "@babel/plugin-transform-react-jsx"] }
Compiled successfully but I can't see anything on browser.
This is original my meteor project, and the issues can see branch "adding-webpack". https://github.com/deliteser112/meteor-starter-kit
Hope to help me please
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I added webpack to my meteor.js project with a hard time. and successfully runing now. but I'm facing now another issue.
Here is my
webpack.config.js
fileand
.babelrc
Compiled successfully but I can't see anything on browser.
This is original my meteor project, and the issues can see branch "adding-webpack".
https://github.com/deliteser112/meteor-starter-kit
Hope to help me please
The text was updated successfully, but these errors were encountered: