These are chat archives for canjs/canjs

27th
Apr 2016
Matthew Phillips
@matthewp
Apr 27 2016 00:42
@halcyonandon do it in the next turn?
like in a setTimeout possible
or Promise.resolve().then( ...
Paul Tichonczuk
@tracer99
Apr 27 2016 11:37
@justinbmeyer I'm assuming all jQuery comments apply to MooTools as well?
Justin Meyer
@justinbmeyer
Apr 27 2016 13:59
@tracer99 that's correct
Matthew Phillips
@matthewp
Apr 27 2016 17:13
@abalmush can you share your webpack config for can?
specifically how you set the root?
Andrei Balmus
@abalmush
Apr 27 2016 18:25
Hi @matthewp, this is my web pack config pack.prod.config.js
/*eslint-disable no-var*/

var path = require('path');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var pkg = require('./package.json');

var outputFileTemplateSuffix = '-' + pkg.version;

module.exports = {
  entry: {
    main: [
      './src/main'
    ]
  },
  output: {
    path: path.join(__dirname, 'dist'),
    filename: '[name]' + outputFileTemplateSuffix + '.js',
    chunkFilename: '[id]' + outputFileTemplateSuffix + '.js'
  },
  plugins: [

  ],
  resolve: {
    root: [
      path.resolve('./')
    ]
  },
  module: {
    loaders: [
      { test: /\.js$/, loader: 'babel', exclude: /node_modules/, query: { presets: ['es2015-loose', 'stage-1'], plugins: ['transform-decorators-legacy'] } },
      { test: /\.css?$/, loader: 'style!css' },
      { test: /\.html$/, loader: 'html' },
      { test: /\.(png|gif|jpg)$/, loader: 'url?limit=8192' },
      { test: /\.woff2(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: 'url?limit=10000&minetype=application/font-woff2' },
      { test: /\.woff(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: 'url?limit=10000&minetype=application/font-woff' },
      { test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: 'file' }
    ]
  }
};
but I’ve use JSPM last time and in this case I’ve just installed cans by running:
jspm install can -o "{ directories: { lib: 'dist/cjs' }, main: 'can’ }"
Andrei Balmus
@abalmush
Apr 27 2016 18:31
Still working on setting up production build.