architectui-react-theme-free icon indicating copy to clipboard operation
architectui-react-theme-free copied to clipboard

Symfony webpack encore

Open Arrow38 opened this issue 6 years ago • 0 comments

Hi , thanks for the amazing theme. I'm a newbie with react-js. I'm trying to make it works with symfony webpack encore. I'm using this config :

webpack.config.js :

.addLoader(
        {
            test: /\.m?js$/,
      exclude: /(node_modules|bower_components)/,
      use: {
        loader: 'babel-loader',
        options: {
          presets: ['@babel/preset-env'],
          plugins: ['@babel/plugin-proposal-object-rest-spread']
        }
    }
  }
)

test.js :

import React from 'react';
import ReactDOM from 'react-dom';
import Main from 'architectui-react-theme-free/src/DemoPages';

ReactDOM.render(
  <Main />,
  document.getElementById('app')
);

image

Arrow38 avatar Jul 18 '19 04:07 Arrow38