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

Not clear what I need to do to get this to work #1

Open
simonexmachina opened this issue May 3, 2016 · 0 comments
Open

Not clear what I need to do to get this to work #1

simonexmachina opened this issue May 3, 2016 · 0 comments

Comments

@simonexmachina
Copy link

I've added the following to my setup:

// package.json
    "css-loader": "^0.23.1",
    "file-loader": "^0.8.5",
    "foundation-sites": "^6.2.1",
    "foundation-sites-loader": "^1.0.1",
    "json-loader": "^0.5.4",
    "node-sass": "^3.6.0",
    "sass-loader": "^3.2.0",
    "style-loader": "^0.13.1",
    "transform-loader": "^0.2.3",
    "url-loader": "^0.5.7",
// main.js
require("foundation-sites-loader");

But when I run webpack it doesn't add anything to my output. Here's my webpack.config:

'use strict';
let path = require('path');

module.exports = {
  entry: './app/main.js',
  output: {
    path: path.resolve(__dirname, 'public/build'),
    filename: 'bundle.js'
  },
  module: {
    loaders: [
      {
        test: /aws-sdk/,
        loaders: [
          'transform?aws-sdk/dist-tools/transform'
        ]
      },
      {
        test: /\.json$/, loaders: ['json']
      },
      {
        test: /\.js$/,
        exclude: /node_modules/,
        loader: 'babel-loader'
      },
    ]
  },
  node: {
    fs: 'empty'
  },
  devtool: 'source-map'
};
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