-
Notifications
You must be signed in to change notification settings - Fork 8
feat(stories): add initial components and scaffolding for import from… #3
Changes from all commits
d16854b
8b1f3e2
d90c67f
60796f3
d8e0fbc
0bcc133
1501ff1
6f25bc0
30d3736
575b54b
6e4de00
c1da834
1780305
ea6345a
4682ae9
3de7416
233051e
c30b8fc
adc729c
eb35d79
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
const path = require('path') | ||
const cssnext = require('postcss-cssnext') | ||
const autoprefixer = require('autoprefixer') | ||
const impy = require('postcss-import') | ||
const neat = require('postcss-neat') | ||
const rucksack = require('rucksack-css') | ||
const PATHS = { | ||
app: './src/stories/index.js', | ||
dist: path.join(__dirname, 'dist') | ||
} | ||
module.exports = { | ||
entry: { | ||
javascript: PATHS.app | ||
}, | ||
output: { | ||
path: PATHS.dist, | ||
publicPath: '/', | ||
filename: 'bundle.js' | ||
}, | ||
devServer: { | ||
contentBase: PATHS.dist | ||
}, | ||
eslint: { | ||
emitWarning: true | ||
}, | ||
watchOptions: { | ||
poll: true | ||
}, | ||
module: { | ||
loaders: [ | ||
{ | ||
test: /\.(jpe?g|png|gif|svg)$/i, | ||
loader: 'file?name=[name].[ext]' | ||
}, | ||
{ | ||
test: /\.css?$/, | ||
loaders: [ 'style-loader', 'css-loader?importLoaders=1', 'postcss-loader' ] | ||
|
||
}, | ||
{ | ||
test: /\.(ttf|otf|eot|woff(2)?)(\?[a-z0-9]+)?$/, | ||
loader: 'file-loader?name=fonts/[name].[ext]' | ||
} | ||
] | ||
}, | ||
resolve: { | ||
extensions: ['', '.js', '.jsx'] | ||
}, | ||
postcss: function () { | ||
return { | ||
defaults: [impy, cssnext, neat, rucksack], | ||
cleaner: [autoprefixer({ browsers: ['last 2 version'] })] | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
// Place your settings in this file to overwrite default and user settings. | ||
{ | ||
"eslint.enable": false | ||
} | ||
"standard.enable": true, | ||
"javascript.validate.enable": false | ||
} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm not sure if the build will honor sourcemaps? given that its a dev tool only, do we want min stuffs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Swapped to non-min.